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.
|
2019-09-29 01:41:49 +01:00
|
|
|
# Powersave (Disable HDMI) ~30ma
|
2019-10-02 21:33:08 +01:00
|
|
|
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
|