From c42da3b4f1d41d87fdec7c6adafd23c391e53838 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Thu, 7 Sep 2023 13:04:00 +0200 Subject: [PATCH] Version 2.3.2 Signed-off-by: Jeroen Oudshoorn Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/fix_services.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/default/fix_services.py b/pwnagotchi/plugins/default/fix_services.py index ae8e3e18..c4c6162f 100644 --- a/pwnagotchi/plugins/default/fix_services.py +++ b/pwnagotchi/plugins/default/fix_services.py @@ -114,7 +114,6 @@ class Fix_Services(plugins.Plugin): other_other_last_lines = ''.join( list(TextIOWrapper(subprocess.Popen(['tail', '-n10', '/var/log/pwnagotchi.log'], stdout=subprocess.PIPE).stdout))[-10:]) - print(other_other_last_lines) # don't check if we ran a reset recently logging.debug("[Fix_Services]**** epoch") if time.time() - self.LASTTRY > 180: @@ -177,7 +176,7 @@ class Fix_Services(plugins.Plugin): logging.error("[Fix_Services monstart]: %s" % repr(err)) # Look for pattern 3 - elif len(self.pattern3.findall(other_other_last_lines)) >= 1: + elif len(self.pattern4.findall(other_other_last_lines)) >= 3: logging.info("[Fix_Services] wlan0 is down!") if hasattr(agent, 'view'): display = agent.view()