Commit f35b9f2a authored by root's avatar root

Celebrating this fucking thing

parent d63f8192
......@@ -31,7 +31,7 @@ def start_wpa(interface):
sh("/sbin/wpa_supplicant -s -B -P /run/wpa_supplicant."+interface+".pid -i wlan0 -D nl80211,wext -C /run/wpa_supplicant")
if len(sys.argv) > 1 and sys.argv[1] == 'boot':
print(' * fuswim starts... ')
print(' * start to fucking with your wireless... ')
boot=True
auto=True
......@@ -43,7 +43,7 @@ if sys.argv[-1] not in ['auto','boot',sys.argv[0]]:
interface = sys.argv[-1]
if not interface in psutil.net_if_stats().keys():
print("Interface "+interface+" doesn't exists. Exiting...")
print("OH FUCK! Interface "+interface+" doesn't exists. Exiting...")
sys.exit(1)
......@@ -55,21 +55,21 @@ for process in psutil.process_iter():
wpas = True
if not wpas:
if auto not boot:
print("wpa_supplicant for "+interface+" not running, launch it... ")
print("fucking wpa_supplicant for "+interface+" not running, shit loading it... ")
start_wpa(interface)
else:
print("wpa_supplicant for "+interface+" not running, exiting... ")
print("fucking wpa_supplicant for "+interface+" not running, fuck the hell out... ")
sys.exit(1)
else:
if psutil.net_if_stats()[interface].isup:
if boot:
print("wpa_supplicant for "+interface+" already configured, exiting... ")
print("fucking wpa_supplicant for "+interface+" already fucked, fuck the hell... ")
sys.exit(0)
else:
print("wpa_supplicant for "+interface+" already configured, reconfiguring it")
print("fucking wpa_supplicant for "+interface+" already fucked, refucking it")
start_wpa(interface)
else:
print("wpa_supplicant for "+interface+" already configured, reconfiguring it")
print("fucking wpa_supplicant for "+interface+" already fucked, refucking it")
start_wpa(interface)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment