Oh oh, fuck me!

parent 265756d3
...@@ -93,7 +93,9 @@ def checkYN(res, default='N'): ...@@ -93,7 +93,9 @@ def checkYN(res, default='N'):
return True return True
elif res.lower()=='n' or res.lower()=='fuck no!': elif res.lower()=='n' or res.lower()=='fuck no!':
return False return False
print_error('WHAT? "'+res+'"? WHAT THE FUCK? I take it as a fuck no!') print_error('WHAT? "'+res+'"? WHAT THE FUCK? I take it as a fuck default! ('+default+')')
if default.lower()=='y' or default.lower()=='fuck yeah':
return True
return False return False
...@@ -177,6 +179,16 @@ def fuckquit(fuck): ...@@ -177,6 +179,16 @@ def fuckquit(fuck):
print_error("I'M FUCKING KILLING MYSELF!") print_error("I'M FUCKING KILLING MYSELF!")
sys.exit(0) sys.exit(0)
def insertNetwork(net):
print_msg("Give me the fucking data for the network "+net['Name'])
pwd = input("PASSWORD: ")
dhcp = checkYN(input("DHCP? <Y|n>: "), default='Y')
if not dhcp:
ip = input("IP")
if len(sys.argv) > 1 and sys.argv[1] == 'boot': if len(sys.argv) > 1 and sys.argv[1] == 'boot':
print_msg(' * start to fucking with your wireless... ') print_msg(' * start to fucking with your wireless... ')
boot=True boot=True
...@@ -230,9 +242,6 @@ else: ...@@ -230,9 +242,6 @@ else:
start_wpa(interface) start_wpa(interface)
SM="init" SM="init"
EXIT=False EXIT=False
selected=False selected=False
...@@ -323,8 +332,12 @@ while not EXIT: ...@@ -323,8 +332,12 @@ while not EXIT:
SM="editor" SM="editor"
elif fuck in netind.keys(): elif fuck in netind.keys():
selected=netind[fuck] selected=netind[fuck]
SM="connect" SM="preconnect"
elif SM=="preconnect":
if not selected['conf']['saved']:
insertNetwork(selected)
SM="connect"
elif SM=="remove": elif SM=="remove":
print("\n FOR FUCK SAKE, are you too lazy to do a rm by hand in "+NETPATH+"?\n") print("\n FOR FUCK SAKE, are you too lazy to do a rm by hand in "+NETPATH+"?\n")
......
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