13 lines
460 B
Bash
Executable File
13 lines
460 B
Bash
Executable File
#!/usr/bin/env bash
|
|
/usr/bin/monstart
|
|
if [[ $(ifconfig | grep usb0 | grep RUNNING) ]] || [[ !$(grep '1' /sys/class/net/eth0/carrier) ]]; then
|
|
# if override file exists, go into auto mode
|
|
if [ -f /root/.pwnagotchi-auto ]; then
|
|
/usr/bin/bettercap -no-colors -caplet pwnagotchi-auto -iface mon0
|
|
else
|
|
/usr/bin/bettercap -no-colors -caplet pwnagotchi-manual -iface mon0
|
|
fi
|
|
else
|
|
/usr/bin/bettercap -no-colors -caplet pwnagotchi-auto -iface mon0
|
|
fi
|