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:
parent
538b547560
commit
8c22b1d6f1
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user