Restart NetworkManager if killed, using 'service' command.

Previously only restarted network-manager if iface was put into monitor mode.

Also tries systemctrl if 'service' fails.

Should resolve #70
This commit is contained in:
derv82
2018-03-10 14:47:14 -05:00
parent 0a81774c59
commit 9661da51e0
4 changed files with 40 additions and 3 deletions

View File

@@ -394,7 +394,9 @@ if __name__ == '__main__':
while aireplay.is_running():
from time import sleep
sleep(0.1)
print aireplay.get_output()
stdout, stderr = aireplay.get_output()
print "STDOUT>", stdout
print "STDERR>", stderr
'''
'''