Files
pwnagotchi/sdcard/rootfs/root/pwnagotchi/scripts/startup.sh
evilsocket 0fdc2b6d9f hello world
2019-09-19 15:15:46 +02:00

14 lines
380 B
Bash
Executable File

#!/bin/bash
# blink 10 times to signal ready state
/root/pwnagotchi/scripts/blink.sh 10 &
# start a detached screen session with bettercap
if ifconfig | grep usb0 | grep RUNNING; then
sudo -H -u root /usr/bin/screen -dmS pwnagotchi -c /root/pwnagotchi/data/screenrc.manual
else
sudo -H -u root /usr/bin/screen -dmS pwnagotchi -c /root/pwnagotchi/data/screenrc.auto
fi