summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakconnect
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/drakconnect')
-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};