mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update
This commit is contained in:
@ -136,6 +136,7 @@ def restart(mode):
|
||||
os.system("touch /root/.pwnagotchi-manual")
|
||||
|
||||
os.system("service bettercap restart")
|
||||
time.sleep(1)
|
||||
os.system("service pwnagotchi restart")
|
||||
|
||||
|
||||
|
@ -102,9 +102,7 @@ class Client(object):
|
||||
except OSError:
|
||||
sleep_time = min_sleep + max_sleep * random.random()
|
||||
logging.warning('connection to the bettercap endpoint failed...')
|
||||
logging.warning('retrying connection in {} sec'.format(sleep_time))
|
||||
await asyncio.sleep(sleep_time)
|
||||
continue
|
||||
pwnagotchi.restart("AUTO")
|
||||
|
||||
def run(self, command, verbose_errors=True):
|
||||
while True:
|
||||
|
Reference in New Issue
Block a user