add override file check to loader
This commit is contained in:
parent
47654660ee
commit
42dcc5fc22
@ -235,7 +235,13 @@
|
|||||||
/usr/bin/bootblink 10 &
|
/usr/bin/bootblink 10 &
|
||||||
# start a detached screen session with bettercap
|
# start a detached screen session with bettercap
|
||||||
if ifconfig | grep usb0 | grep RUNNING; then
|
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
|
else
|
||||||
/usr/local/bin/pwnagotchi
|
/usr/local/bin/pwnagotchi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user