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=Safe shutdown for the RetroFlag PiCase that uses Retropie. | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/python /opt/RetroFlag/SafeShutdown.py & | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=default.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 | |
if [ ! $(which scons) ]; then | |
echo "Please install scons." | |
exit 2 | |
fi | |
if [ ! $(which msbuild) ]; then | |
echo "Please install msbuild." | |
exit 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
#!/bin/bash | |
# Since my backlight is not dimming on its own, I have resorted | |
# to getting a Bash script to do it for me. This script waits | |
# a certain amount of seconds (passed as input) until it dims | |
# the screen. | |
# This script was found here: http://askubuntu.com/a/762994 | |
# Jason Anderson, February 2, 2017 |