示例#1
0
 def delete_connection(self):
     ssid = nm.get_active_ssid(modemgr.get_link_device())
     nm.del_connection_by_ssid(ssid)
     states.set_state('HOTSPOT')
示例#2
0
def run_cmds(cmds):
    outdev = nm.device_name(modemgr.get_link_device())
    for cmd in cmds:
        subprocess.call(cmd.format(outdev), shell=True)
示例#3
0
文件: nmmon.py 项目: banzsolt/comitup
def init_nmmon():
    set_device_listeners(modemgr.get_ap_device(), modemgr.get_link_device())
示例#4
0
def run_cmds(cmds):
    linkdev = nm.device_name(modemgr.get_link_device())
    apdev = nm.device_name(modemgr.get_ap_device())
    for cmd in cmds:
        subprocess.call(cmd.format(link=linkdev, ap=apdev), shell=True)