summaryrefslogtreecommitdiffstats
path: root/perl-install/network/netconnect.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-09-27 12:54:42 +0000
committerOlivier Blin <oblin@mandriva.org>2004-09-27 12:54:42 +0000
commitd30b7900210ca8102072be74bed4915221f47670 (patch)
treed04ac3dcb1545abbbd1df93450a167281ffddaf4 /perl-install/network/netconnect.pm
parent8d5b3494c3a8d1b0f6d50265438ff912ed6a7c18 (diff)
downloaddrakx-d30b7900210ca8102072be74bed4915221f47670.tar
drakx-d30b7900210ca8102072be74bed4915221f47670.tar.gz
drakx-d30b7900210ca8102072be74bed4915221f47670.tar.bz2
drakx-d30b7900210ca8102072be74bed4915221f47670.tar.xz
drakx-d30b7900210ca8102072be74bed4915221f47670.zip
don't scramble $netcnx->{type}
Diffstat (limited to 'perl-install/network/netconnect.pm')
-rw-r--r--perl-install/network/netconnect.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 16dbd0458..747614ba2 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -187,8 +187,8 @@ sub real_main {
};
my $after_start_on_boot_step = sub {
- if ($netc->{internet_cnx_choice}) {
- $netcnx->{type} = $netc->{internet_cnx}{$netc->{internet_cnx_choice}}{type} if $netc->{internet_cnx_choice};
+ if ($netc->{internet_cnx_choice} && exists $netc->{internet_cnx}{$netc->{internet_cnx_choice}}) {
+ $netcnx->{type} = $netc->{internet_cnx}{$netc->{internet_cnx_choice}}{type};
} else {
undef $netc->{NET_DEVICE};
}