summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2004-04-19 12:36:36 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2004-04-19 12:36:36 +0000
commitc6b7fb940ab5df0a72f35d32ebfb3e4e389ce3c9 (patch)
tree8bae34107241e621904618e3ef75f98ea6a992e2
parenta115b09a14be1455e10056de3dd6267ab4e9982c (diff)
downloaddrakx-c6b7fb940ab5df0a72f35d32ebfb3e4e389ce3c9.tar
drakx-c6b7fb940ab5df0a72f35d32ebfb3e4e389ce3c9.tar.gz
drakx-c6b7fb940ab5df0a72f35d32ebfb3e4e389ce3c9.tar.bz2
drakx-c6b7fb940ab5df0a72f35d32ebfb3e4e389ce3c9.tar.xz
drakx-c6b7fb940ab5df0a72f35d32ebfb3e4e389ce3c9.zip
IPADDR, NETMASK and GATEWAY fields are not sensitive by default in DHCP
(broken by #8498 fix)
-rwxr-xr-xperl-install/standalone/drakconnect3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index fbfa347d2..0e3e964c7 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -359,6 +359,9 @@ sub build_notebook {
$proto->{protocols} = { static => N("static"), dhcp => N_("DHCP") };
$proto->set_popdown_strings(@{$proto->{protocols}}{qw(dhcp static)});
$proto->set_text($proto->{protocols}{$intf->{BOOTPROTO}});
+ foreach ($gui->{intf}{IPADDR}, $gui->{intf}{NETMASK}, $gui->{netc}{GATEWAY}) {
+ $_->set_sensitive($intf->{BOOTPROTO} eq 'static' ? 1 : 0)
+ };
} else {
$_->set_sensitive(0) foreach $gui->{intf}{IPADDR}, $gui->{intf}{NETMASK};
delete $gui->{intf}{BOOTPROTO};