Merge remote-tracking branch 'origin/pwnagotchi-torch-testing' into pwnagotchi-torch-testing

This commit is contained in:
Jeroen Oudshoorn
2023-10-01 12:19:44 +02:00
2 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@ Wants=network.target
Type=simple
ExecStart=/usr/bin/bettercap-launcher
Restart=always
RestartSec=30
RestartSec=5
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

View File

@ -100,6 +100,7 @@ class Client(object):
except OSError:
logging.warning('[bettercap] connection to the bettercap endpoint failed...')
pwnagotchi.reboot()
def run(self, command, verbose_errors=True):
while True:
@ -113,4 +114,4 @@ class Client(object):
else:
break
return decode(r, verbose_errors=verbose_errors)
return decode(r, verbose_errors=verbose_errors)