fix: builder now uses files provisioners and auto-update installs project data (ref #470)

This commit is contained in:
Simone Margaritelli
2019-10-30 19:24:12 +01:00
parent 1600d8cbd1
commit be414e57b3
11 changed files with 149 additions and 146 deletions

View File

@ -0,0 +1,12 @@
#!/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