Cassiano Aquino 654456127e
Add the check if HDMI cable is connected
For some reason this if was not added during my PR.
2019-10-02 21:33:08 +01:00

20 lines
463 B
Bash
Executable File

#!/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.
# Powersave (Disable HDMI) ~30ma
sleep 10
if ! /opt/vc/bin/tvservice -s | grep HDMI; then
/opt/vc/bin/tvservice -o
fi
/root/pwnagotchi/scripts/startup.sh &
exit 0