Merge pull request from caquino/caquino/auto-override

add override file check to loader
This commit is contained in:
evilsocket 2019-10-08 15:23:55 +02:00 committed by GitHub
commit b1800f1962
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -235,7 +235,13 @@
/usr/bin/bootblink 10 &
# start a detached screen session with bettercap
if ifconfig | grep usb0 | grep RUNNING; then
/usr/local/bin/pwnagotchi --manual
# if override file exists, go into auto mode
if [ -f /root/.pwnagotchi-auto ]; then
rm /root/.pwnagotchi-auto
/usr/local/bin/pwnagotchi
else
/usr/local/bin/pwnagotchi --manual
fi
else
/usr/local/bin/pwnagotchi
fi