You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.
importobjcimportsubprocessfromFoundationimportNSBundleobjc.loadBundle('CoreWLAN',
bundle_path='/System/Library/Frameworks/CoreWLAN.framework',
module_globals=globals())
iface_name=CWInterface.interfaceNames()
# This handles a case where we have no wireless interface# and the return value is Noneififace_name:
# The first interface can be assumed to be the airport cardiface_name=iface_name.itervalues().next()
command= ['/usr/sbin/networksetup', '-getairportpower',
iface_name]
proc=subprocess.Popen(command, shell=False,stdout=subprocess.PIPE)
interface_output= (proc.communicate()[0].replace('\n', '')
.split(":")[1].replace(' ', ''))
printinterface_outputelse:
printNone
If wireless is disabled and preference is to leave it disabled we should write that to
status
and exit(1).Tied to #3
The text was updated successfully, but these errors were encountered: