Some comments

parent 66ad7a10
...@@ -155,6 +155,8 @@ def validateIP(ip): ...@@ -155,6 +155,8 @@ def validateIP(ip):
return False return False
# XXX This is CRAP. Let's find a better
# way to parse a better config?
def read_netconf(net): def read_netconf(net):
p="/".join([NETPATH, net]) p="/".join([NETPATH, net])
conf = { conf = {
...@@ -466,6 +468,7 @@ while not EXIT: ...@@ -466,6 +468,7 @@ while not EXIT:
print_error("FUCK, Are you asking me to connect but you didn't select successfully any network???") print_error("FUCK, Are you asking me to connect but you didn't select successfully any network???")
if done: if done:
# TODO launch here a post-connect external script?
print(colors.BCYAN+"\n Are we fucking connected? Up to you to check, do something for fuck sake! \n"+colors.ENDC) print(colors.BCYAN+"\n Are we fucking connected? Up to you to check, do something for fuck sake! \n"+colors.ENDC)
if boot: if boot:
if done: if done:
...@@ -519,6 +522,7 @@ while not EXIT: ...@@ -519,6 +522,7 @@ while not EXIT:
if not selected['conf']['saved']: if not selected['conf']['saved']:
if insertNetwork(selected): if insertNetwork(selected):
SM="connect" SM="connect"
# TODO launch a pre-connect external script
else: else:
print_error(" FUCK, it seems i can't add this fucking network ") print_error(" FUCK, it seems i can't add this fucking network ")
time.sleep(1) time.sleep(1)
......
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