20 lines
463 B
Plaintext
Raw Normal View History

2019-09-19 15:15:46 +02:00
#!/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
2019-09-19 15:15:46 +02:00
/root/pwnagotchi/scripts/startup.sh &
exit 0