diff options
author | Damien Chaumette <dchaumette@mandriva.com> | 2004-04-19 12:36:36 +0000 |
---|---|---|
committer | Damien Chaumette <dchaumette@mandriva.com> | 2004-04-19 12:36:36 +0000 |
commit | c6b7fb940ab5df0a72f35d32ebfb3e4e389ce3c9 (patch) | |
tree | 8bae34107241e621904618e3ef75f98ea6a992e2 /perl-install/standalone/drakconnect | |
parent | a115b09a14be1455e10056de3dd6267ab4e9982c (diff) | |
download | drakx-backup-do-not-use-c6b7fb940ab5df0a72f35d32ebfb3e4e389ce3c9.tar drakx-backup-do-not-use-c6b7fb940ab5df0a72f35d32ebfb3e4e389ce3c9.tar.gz drakx-backup-do-not-use-c6b7fb940ab5df0a72f35d32ebfb3e4e389ce3c9.tar.bz2 drakx-backup-do-not-use-c6b7fb940ab5df0a72f35d32ebfb3e4e389ce3c9.tar.xz drakx-backup-do-not-use-c6b7fb940ab5df0a72f35d32ebfb3e4e389ce3c9.zip |
IPADDR, NETMASK and GATEWAY fields are not sensitive by default in DHCP
(broken by #8498 fix)
Diffstat (limited to 'perl-install/standalone/drakconnect')
-rwxr-xr-x | perl-install/standalone/drakconnect | 3 |
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}; |