summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-10-04 11:23:43 +0000
committerOlivier Blin <oblin@mandriva.org>2004-10-04 11:23:43 +0000
commiteb84f5eb878159ba25bdfb70998a663e24216736 (patch)
treedbdafaeb6cc632ab08f4ace5c90b64d95281bb17
parent4578d8f89f09379f53a6a43a06f9ba1a8abcee0d (diff)
downloaddrakx-eb84f5eb878159ba25bdfb70998a663e24216736.tar
drakx-eb84f5eb878159ba25bdfb70998a663e24216736.tar.gz
drakx-eb84f5eb878159ba25bdfb70998a663e24216736.tar.bz2
drakx-eb84f5eb878159ba25bdfb70998a663e24216736.tar.xz
drakx-eb84f5eb878159ba25bdfb70998a663e24216736.zip
(build_notebook) do not crash if BOOTPROTO is empty, use 'none' by
default (#11899)
-rwxr-xr-xperl-install/standalone/drakconnect2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index 7865916b4..19055cd58 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -357,7 +357,7 @@ sub build_notebook {
my $proto = $gui->{intf}{BOOTPROTO};
$proto->{protocols} = { none => N("none"), static => N("static"), dhcp => N("DHCP") };
$proto->set_popdown_strings(values %{$proto->{protocols}});
- $proto->set_text($proto->{protocols}{$intf->{BOOTPROTO}});
+ $proto->set_text($proto->{protocols}{$intf->{BOOTPROTO} || 'none'});
foreach ($gui->{intf}{IPADDR}, $gui->{intf}{NETMASK}, $gui->{netc}{GATEWAY}) {
$_->set_sensitive($intf->{BOOTPROTO} eq 'static' ? 1 : 0)
};