Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-16 22:38:40 +02:00
parent 681f345620
commit 8dbc22163b
2 changed files with 0 additions and 16 deletions

View File

@ -6,7 +6,6 @@ import importlib, importlib.util
import logging
default_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "default")
loaded = {}
database = {}

View File

@ -38,7 +38,6 @@ class FixServices(plugins.Plugin):
self.pattern2 = re.compile(r'wifi error while hopping to channel')
self.pattern3 = re.compile(r'Firmware has halted or crashed')
self.pattern4 = re.compile(r'error 400: could not find interface wlan0mon')
self.pattern5 = re.compile(r'cannot schedule new futures after shutdown')
self.isReloadingMon = False
self.connection = None
self.LASTTRY = 0
@ -190,20 +189,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)) >= 1:
logging.info("[Fix_Services] Threading issues, restarting")
if hasattr(agent, 'view'):
display = agent.view()
display.set('status', 'Restarting pwnagotchi now!')
display.update(force=True)
try:
# Restarting bettercap and pwnagotchi
logging.info("[Fix_Services systemd]: restarting bettercap and pwnagotchi")
pwnagotchi.restart("AUTO")
except Exception as err:
logging.error("[Fix_Services systemd]: %s" % repr(err))
else:
print("logs look good")