Skip to content

Commit bc58016

Browse files
committed
The sysfs interface is deprecated, switch to using pinctrl
1 parent 2092ccc commit bc58016

File tree

5 files changed

+4
-15
lines changed

5 files changed

+4
-15
lines changed

parts/files/leds/boot_40.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Description=Boot Progress 40%
33
[Service]
44
Type=simple
5-
ExecStart=/usr/bin/set-led 5 1
5+
ExecStart=/usr/bin/pinctrl set 5 op dh
66

77
[Install]
88
WantedBy=basic.target

parts/files/leds/boot_60.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ After=network.target
44

55
[Service]
66
Type=simple
7-
ExecStart=/usr/bin/set-led 12 1
7+
ExecStart=/usr/bin/pinctrl set 12 op dh
88

99
[Install]
1010
WantedBy=multi-user.target

parts/files/leds/boot_80.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ After=runusb.service
55

66
[Service]
77
Type=forking
8-
ExecStart=/usr/bin/set-led 6 1
9-
ExecStop=/usr/bin/set-led 6 0
8+
ExecStart=/usr/bin/pinctrl set 6 op dh
9+
ExecStop=/usr/bin/pinctrl set 6 op dl
1010
RemainAfterExit=yes
1111

1212
[Install]

parts/files/leds/set-led

Lines changed: 0 additions & 9 deletions
This file was deleted.

parts/robot.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ SUBSYSTEM=="usb", ATTRS{idVendor}=="1bda", ATTRS{idProduct}=="0011", GROUP="$gro
5555
EOF
5656

5757
# Setup KCH leds triggered by systemd
58-
cp /tmp/packer-files/leds/set-led /usr/bin/
59-
chmod +x /usr/bin/set-led
6058
cp /tmp/packer-files/leds/*.service /lib/systemd/system/
6159
systemctl enable boot_40.service
6260
systemctl enable boot_60.service

0 commit comments

Comments
 (0)