Fix fix_services.py

Signed-off-by: jayofelony <oudshoorn.jeroen@gmail.com>
This commit is contained in:
jayofelony
2024-03-25 23:29:10 +01:00
parent 9287283ee7
commit 697a7778b1

View File

@ -5,7 +5,6 @@ import time
import random
from io import TextIOWrapper
import os
import platform
import pwnagotchi
from pwnagotchi import plugins
@ -117,7 +116,6 @@ class FixServices(plugins.Plugin):
logging.debug("[Fix_Services]**** checking")
# Look for pattern 1
if platform.machine().startswith('arm'):
if len(self.pattern.findall(last_lines)) >= 3:
logging.debug("[Fix_Services]**** Should trigger a reload of the wlan0mon device:\n%s" % last_lines)
if hasattr(agent, 'view'):
@ -132,7 +130,6 @@ class FixServices(plugins.Plugin):
# Look for pattern 2
elif len(self.pattern2.findall(other_last_lines)) >= 5:
if platform.machine().startswith('arm'):
logging.debug("[Fix_Services]**** Should trigger a reload of the wlan0mon device:\n%s" % last_lines)
if hasattr(agent, 'view'):
display = agent.view()