1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 12:28:08 +01:00

Fix wrong syntax when saving connection scripts

This commit is contained in:
David Paleino
2012-11-06 21:25:25 +01:00
parent 3d9696845d
commit c305b4132e

View File

@@ -92,7 +92,7 @@ def write_scripts(network, network_type, script_info):
con.set(network, "afterscript", script_info["post_entry"])
con.set(network, "predisconnectscript", script_info["pre_disconnect_entry"])
con.set(network, "postdisconnectscript", script_info["post_disconnect_entry"])
con.write(open(wired_conf, "w"))
con.write()
wired.ReloadConfig()
wired.ReadWiredNetworkProfile(network)
wired.SaveWiredNetworkProfile(network)
@@ -103,7 +103,7 @@ def write_scripts(network, network_type, script_info):
con.set(bssid, "afterscript", script_info["post_entry"])
con.set(bssid, "predisconnectscript", script_info["pre_disconnect_entry"])
con.set(bssid, "postdisconnectscript", script_info["post_disconnect_entry"])
con.write(open(wireless_conf, "w"))
con.write()
wireless.ReloadConfig()
wireless.ReadWirelessNetworkProfile(int(network))
wireless.SaveWirelessNetworkProfile(int(network))