diff --git a/pwnagotchi/bettercap.py b/pwnagotchi/bettercap.py index 5e2eb689..d681a1a9 100644 --- a/pwnagotchi/bettercap.py +++ b/pwnagotchi/bettercap.py @@ -99,7 +99,7 @@ class Client(object): except OSError: sleep_time = min_sleep + max_sleep*random.random() logging.warning('connection to the bettercap endpoint failed...') - pwnagotchi.restart("AUTO") + pwnagotchi.reboot() continue def run(self, command, verbose_errors=True): diff --git a/pwnagotchi/plugins/default/fix_services.py b/pwnagotchi/plugins/default/fix_services.py index 43131037..3dc800a1 100644 --- a/pwnagotchi/plugins/default/fix_services.py +++ b/pwnagotchi/plugins/default/fix_services.py @@ -193,19 +193,6 @@ class FixServices(plugins.Plugin): except Exception as err: logging.error("[Fix_Services monstart]: %s" % repr(err)) - # Look for pattern 5 - elif len(self.pattern5.findall(other_other_last_lines)) >= 8: - logging.info("[Fix_Services] bettercap is down, restarting!") - if hasattr(agent, 'view'): - display = agent.view() - display.set('status', 'Rebooting now!') - display.update(force=True) - try: - logging.info("[Fix_Services rebooting now]") - pwnagotchi.reboot() - except Exception as err: - logging.error("[Fix_Services monstart]: %s" % repr(err)) - else: print("logs look good")