pi400kb icon indicating copy to clipboard operation
pi400kb copied to clipboard

hook.sh outdated

Open Asmod4n opened this issue 11 months ago • 2 comments

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

Asmod4n avatar Dec 17 '24 06:12 Asmod4n

Hmm I wonder if we could misappropriate capslock/numlock or scrolllock for this....

Gadgetoid avatar Jan 22 '25 13:01 Gadgetoid

could you fix this bug please, because it breaks the script otherwise ?

k4amos avatar Apr 24 '25 21:04 k4amos