Oh oh, fuck me!

parent 265756d3
......@@ -93,7 +93,9 @@ def checkYN(res, default='N'):
return True
elif res.lower()=='n' or res.lower()=='fuck no!':
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
......@@ -177,6 +179,16 @@ def fuckquit(fuck):
print_error("I'M FUCKING KILLING MYSELF!")
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':
print_msg(' * start to fucking with your wireless... ')
boot=True
......@@ -230,9 +242,6 @@ else:
start_wpa(interface)
SM="init"
EXIT=False
selected=False
......@@ -323,8 +332,12 @@ while not EXIT:
SM="editor"
elif fuck in netind.keys():
selected=netind[fuck]
SM="connect"
SM="preconnect"
elif SM=="preconnect":
if not selected['conf']['saved']:
insertNetwork(selected)
SM="connect"
elif SM=="remove":
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