Rabux
Validating
-
Joined
-
Last visited
Reputation Activity
-
Rabux reacted to guidol in NanoPI M4: Disable LEDs and WiFifor the LEDs you can try the following:
ls -l /sys/class/leds
(here as example from a NanoPi Neo2):
lrwxrwxrwx 1 root root 0 Feb 20 21:50 nanopi:green:status -> ../../devices/platform/leds/leds/nanopi:green:status
lrwxrwxrwx 1 root root 0 Feb 20 21:50 nanopi:red:pwr -> ../../devices/platform/leds/leds/nanopi:red:pwr
then echo none to the trigger of the led-name:
echo 'none' > /sys/class/leds/[name_of_the_led]/trigger
so it should look like this:
echo 'none' > /sys/class/leds/nanopi:green:status/trigger
You only have to check the led-names of your board and add the commands in /etc/rc.local before "exit 0"