Add the check if HDMI cable is connected

For some reason this if was not added during my PR.
This commit is contained in:
Cassiano Aquino
2019-10-02 21:33:08 +01:00
committed by GitHub
parent bbcfae19a7
commit 654456127e

View File

@ -11,6 +11,9 @@
# #
# By default this script does nothing. # By default this script does nothing.
# Powersave (Disable HDMI) ~30ma # Powersave (Disable HDMI) ~30ma
sleep 10
if ! /opt/vc/bin/tvservice -s | grep HDMI; then
/opt/vc/bin/tvservice -o /opt/vc/bin/tvservice -o
fi
/root/pwnagotchi/scripts/startup.sh & /root/pwnagotchi/scripts/startup.sh &
exit 0 exit 0