I have an Intel NUC, and I've compiled a kernel extension to control the LED. It has created a
.ko file at
/lib/modules/4.15.0-38-generic/updates/dkms/nuc_led.ko (which matches
uname -r). Manually loading the extension works great:
sudo modprobe wmi sudo insmod /lib/modules/4.15.0-38-generic/updates/dkms/nuc_led.ko echo 'ring,80,blink_medium,green' | sudo tee /proc/acpi/nuc_led > /dev/null
However the extension is not currently loaded at boot. I would like to put commands to turn the LED on and off in
rc6.d/ but these are not working, I have to run the
modprobe commands manually, and even then my file in
rc6.d/ (shown below) is not working - the LED remains on.
What am I doing wrong?
$ cat /etc/rc6.d/zz_led_off.sh #! /bin/bash echo 'ring,0,none,off' | sudo tee /proc/acpi/nuc_led > /dev/null $ ls -la /etc/rc6.d/zz_led_off.sh | grep zz -rwxr-xr-x 1 root root 79 Nov 9 10:07 zz_led_off.sh