I was able to install this little program: https://www.raspberrypi.org/forums/view ... 63&t=72070
With "sudo ./MyScripts/llctl/llctl f0 l0 d0" I can deactivate the LAN-LEDs, but it does not work in my rc.local:
Any Ideas how to deactivate the PWR-LED? "/sys/class/leds/led1" does not exist. led0 works fine.
Code: Select all
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. # Print the IP address _IP=$(hostname -I) || true if [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP" fi #echo 0 | sudo tee /sys/class/leds/led1/brightness # Set the ACT LED to trigger on cpu0 instead of mmc0 (SD card access). echo cpu0 | tee /sys/class/leds/led0/trigger sleep 30 #turn off LAN-LEDs ./MyScripts/llctl/llctl f0 l0 d0 exit 0