Exemplo n.º 1
0
 def start(self):
     m = NM_manager(self.bus)
     m.enable_wifi(False)
     subprocess.call("rfkill unblock wifi")
     r = route()
     r.enable()
     h = hostapd()
     h.config(self.ifname, self.ssid, self.passwd)
     h.enable()
Exemplo n.º 2
0
 def start(self):
     m = NM_manager(self.bus)
     m.enable_wifi(False)
     subprocess.call("rfkill unblock wifi", shell=True)
     d = dnsmasq()
     d.enable()
     r = route()
     r.enable()
     h = hostapd()
     h.enable()
Exemplo n.º 3
0
 def start(self):
     subprocess.call("rfkill unblock wifi", shell=True)
     m = NM_manager(self.bus)
     m.enable_wifi(True)