Skip to content

Instantly share code, notes, and snippets.

@victorbnl
Last active December 19, 2020 00:24
Show Gist options
  • Save victorbnl/85b36c88e1ad8fcdbc40cbb00a8e310a to your computer and use it in GitHub Desktop.
Save victorbnl/85b36c88e1ad8fcdbc40cbb00a8e310a to your computer and use it in GitHub Desktop.
Turns off leds of Raspberry Pi 3
[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
#!/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