示例#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()
示例#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()
示例#3
0
 def start(self):
     subprocess.call("rfkill unblock wifi", shell=True)
     m = NM_manager(self.bus)
     m.enable_wifi(True)