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 Type=simple
ExecStart=/usr/bin/bettercap-launcher ExecStart=/usr/bin/bettercap-launcher
Restart=always Restart=always
RestartSec=30 RestartSec=5
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -101,6 +101,7 @@ class Client(object):
logging.warning('[bettercap] connection to the bettercap endpoint failed...') logging.warning('[bettercap] connection to the bettercap endpoint failed...')
pwnagotchi.reboot() pwnagotchi.reboot()
def run(self, command, verbose_errors=True): def run(self, command, verbose_errors=True):
while True: while True:
try: try: