예제 #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
파일: iptmgr.py 프로젝트: banzsolt/comitup
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)