summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorbfox <bfox>2001-02-19 20:46:51 +0000
committerbfox <bfox>2001-02-19 20:46:51 +0000
commitafc1efe38bf4eaf4bb6087e3f31b4fe54f26c7ce (patch)
tree2f8f192dfc6cc96e56f604693cf5ce9d23dfd5b8 /iw
parent39a2bf98147d5980fd80966ec138c57bd3f40999 (diff)
downloadanaconda-afc1efe38bf4eaf4bb6087e3f31b4fe54f26c7ce.tar.gz
anaconda-afc1efe38bf4eaf4bb6087e3f31b4fe54f26c7ce.tar.xz
anaconda-afc1efe38bf4eaf4bb6087e3f31b4fe54f26c7ce.zip
if user chooses static IP selection in stage 1, the network screen does not select dhcp now
Diffstat (limited to 'iw')
-rw-r--r--iw/network_gui.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/iw/network_gui.py b/iw/network_gui.py
index 7bc0ea628..b603d70b2 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -198,8 +198,16 @@ class NetworkWindow (InstallWindow):
self.ipTable = GtkTable (len (options), 2) # this is the iptable used for DNS, et. al
DHCPcb.connect ("toggled", self.DHCPtoggled, (devs[i], ipTable))
+
# DHCPcb.set_active (devs[i].get ("bootproto") == "dhcp")
- DHCPcb.set_active (TRUE)
+# DHCPcb.set_active (TRUE)
+ print devs[i].get ("bootproto")
+
+ if devs[i].get ("bootproto") == "static":
+ DHCPcb.set_active (FALSE)
+ else:
+ DHCPcb.set_active (TRUE)
+
forward = lambda widget, box=box: box.focus (DIR_TAB_FORWARD)