Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-17 21:44:42 +02:00
parent 33465205e0
commit d6ec7b80b3

View File

@ -105,8 +105,10 @@ class FixServices(plugins.Plugin):
print("Wifi recon flipped") print("Wifi recon flipped")
else: else:
logging.warning("[Fix_Services] wifi.recon flip: FAILED: %s" % repr(result)) logging.warning("[Fix_Services] wifi.recon flip: FAILED: %s" % repr(result))
self._tryTurningItOffAndOnAgain(agent)
except Exception as err: except Exception as err:
logging.error("[Fix_Services]SYSLOG wifi.recon flip fail: %s" % err) logging.error("[Fix_Services]SYSLOG wifi.recon flip fail: %s" % err)
self._tryTurningItOffAndOnAgain(agent)
def on_epoch(self, agent, epoch, epoch_data): def on_epoch(self, agent, epoch, epoch_data):
last_lines = ''.join(list(TextIOWrapper(subprocess.Popen(['journalctl', '-n10', '-k'], last_lines = ''.join(list(TextIOWrapper(subprocess.Popen(['journalctl', '-n10', '-k'],