diff --git a/pwnagotchi/plugins/default/fix_services.py b/pwnagotchi/plugins/default/fix_services.py index 6d692bc8..b956dc5c 100644 --- a/pwnagotchi/plugins/default/fix_services.py +++ b/pwnagotchi/plugins/default/fix_services.py @@ -113,6 +113,8 @@ class FixServices(plugins.Plugin): def on_ready(self, agent): if self.is_disabled: return + last_lines = ''.join(list(TextIOWrapper(subprocess.Popen(['journalctl', '-n10', '-k'], + stdout=subprocess.PIPE).stdout))[-10:]) try: self._validate_iface("wlan0mon") cmd_output = subprocess.check_output("ip link show wlan0mon", shell=True)