mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2026-07-28 14:37:00 -07:00
Revert "fix(fix_services): remove unused Popen in on_ready (resource leak)"
This reverts commit 283be16549.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user