pi400kb
pi400kb copied to clipboard
hook.sh outdated
The hook.sh script looks for a led which isn't there anymore, these are the LEDs on a current raspbian install.
$ ls -la /sys/class/leds/
total 0
drwxr-xr-x 2 root root 0 Jan 1 1970 .
drwxr-xr-x 65 root root 0 Jan 1 1970 ..
lrwxrwxrwx 1 root root 0 Jan 1 1970 default-on -> ../../devices/virtual/leds/default-on
lrwxrwxrwx 1 root root 0 Dec 17 07:35 input0::capslock -> ../../devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:04D9:0007.0001/input/input0/input0::capslock
lrwxrwxrwx 1 root root 0 Dec 17 07:35 input0::numlock -> ../../devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:04D9:0007.0001/input/input0/input0::numlock
lrwxrwxrwx 1 root root 0 Dec 17 07:35 input0::scrolllock -> ../../devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0/0003:04D9:0007.0001/input/input0/input0::scrolllock
lrwxrwxrwx 1 root root 0 Jan 1 1970 mmc0 -> ../../devices/virtual/leds/mmc0
lrwxrwxrwx 1 root root 0 Jan 1 1970 mmc0:: -> ../../devices/platform/emmc2bus/fe340000.mmc/leds/mmc0::
lrwxrwxrwx 1 root root 0 Jan 1 1970 PWR -> ../../devices/platform/leds/leds/PWR
Hmm I wonder if we could misappropriate capslock/numlock or scrolllock for this....
could you fix this bug please, because it breaks the script otherwise ?