Merge pull request from caquino/patch-1

Add the check if HDMI cable is connected
This commit is contained in:
evilsocket 2019-10-03 09:56:32 +02:00 committed by GitHub
commit c1bd0f7886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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