Added self as tear_down_monitor argument *blush*
authorTobias Mueller <tobiasmue@gnome.org>
Thu, 13 Jan 2011 16:15:20 +0000 (17:15 +0100)
committerTobias Mueller <tobiasmue@gnome.org>
Thu, 13 Jan 2011 16:15:20 +0000 (17:15 +0100)
pwnitter.py

index 6b176f1..67d3f75 100755 (executable)
@@ -83,7 +83,7 @@ class Pwnitter(dbus.service.Object):
         return self.status
 
 
-    def tear_down_monitor(device='mon0'):
+    def tear_down_monitor(self, device='mon0'):
         cmd = '/sbin/ifconfig mon0 down'.split()
         subprocess.call(cmd)
         cmd = '/usr/sbin/iw dev mon0 del'.split()