Last active
December 19, 2020 00:24
-
-
Save victorbnl/85b36c88e1ad8fcdbc40cbb00a8e310a to your computer and use it in GitHub Desktop.
Turns off leds of Raspberry Pi 3
This file contains 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=Turn off leds | |
[Installation] | |
WantedBy=multi-user.target | |
Type=simple | |
Restart=never | |
User=root | |
ExecStart=/home/root/turnOffLeds.sh | |
[Install] | |
WantedBy=multi-user.target |
This file contains 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
#!/bin/bash | |
echo 0 > /sys/class/leds/led0/brightness | |
echo 0 > /sys/class/leds/led1/brightness |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment