mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
fix: if bettercap starts and no active interfaces are found, if mon0 is not explicitly passed it will fail with a 'No active interfces' error
This commit is contained in:
@ -329,12 +329,12 @@
|
|||||||
# if override file exists, go into auto mode
|
# if override file exists, go into auto mode
|
||||||
if [ -f /root/.pwnagotchi-auto ]; then
|
if [ -f /root/.pwnagotchi-auto ]; then
|
||||||
rm /root/.pwnagotchi-auto
|
rm /root/.pwnagotchi-auto
|
||||||
/usr/bin/bettercap -no-colors -caplet pwnagotchi-auto
|
/usr/bin/bettercap -no-colors -caplet pwnagotchi-auto -iface mon0
|
||||||
else
|
else
|
||||||
/usr/bin/bettercap -no-colors -caplet pwnagotchi-manual
|
/usr/bin/bettercap -no-colors -caplet pwnagotchi-manual -iface mon0
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
/usr/bin/bettercap -no-colors -caplet pwnagotchi-auto
|
/usr/bin/bettercap -no-colors -caplet pwnagotchi-auto -iface mon0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: create monstart script
|
- name: create monstart script
|
||||||
|
Reference in New Issue
Block a user