Revert "Version 2.3.2"

This reverts commit 036d81eeab.
This commit is contained in:
Jeroen Oudshoorn
2023-09-08 20:26:37 +02:00
parent e80891f912
commit c2084dcb0e

View File

@ -114,6 +114,7 @@ class Fix_Services(plugins.Plugin):
other_other_last_lines = ''.join( other_other_last_lines = ''.join(
list(TextIOWrapper(subprocess.Popen(['tail', '-n10', '/var/log/pwnagotchi.log'], list(TextIOWrapper(subprocess.Popen(['tail', '-n10', '/var/log/pwnagotchi.log'],
stdout=subprocess.PIPE).stdout))[-10:]) stdout=subprocess.PIPE).stdout))[-10:])
print(other_other_last_lines)
# don't check if we ran a reset recently # don't check if we ran a reset recently
logging.debug("[Fix_Services]**** epoch") logging.debug("[Fix_Services]**** epoch")
if time.time() - self.LASTTRY > 180: if time.time() - self.LASTTRY > 180:
@ -176,7 +177,7 @@ class Fix_Services(plugins.Plugin):
logging.error("[Fix_Services monstart]: %s" % repr(err)) logging.error("[Fix_Services monstart]: %s" % repr(err))
# Look for pattern 3 # Look for pattern 3
elif len(self.pattern4.findall(other_other_last_lines)) >= 3: elif len(self.pattern3.findall(other_other_last_lines)) >= 1:
logging.info("[Fix_Services] wlan0 is down!") logging.info("[Fix_Services] wlan0 is down!")
if hasattr(agent, 'view'): if hasattr(agent, 'view'):
display = agent.view() display = agent.view()