Last active
December 9, 2020 21:47
-
-
Save h4de5/6011243740ba7ab9ddf36a3f0f1b3aef to your computer and use it in GitHub Desktop.
disable leds on rpi3 - when config.txt modification do not work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Disable leds | |
After=network-online.target | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/sh -c '/bin/echo "none" > /sys/class/leds/led0/trigger' | |
ExecStart=/bin/sh -c '/bin/echo "0" > /sys/class/leds/led0/brightness' | |
ExecStart=/bin/sh -c '/bin/echo "none" > /sys/class/leds/led1/trigger' | |
ExecStart=/bin/sh -c '/bin/echo "0" > /sys/class/leds/led1/brightness' | |
User=root | |
Group=root | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
install