summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-01-21 10:28:41 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-01-21 10:28:41 +0000
commit96484d7798de635f4df3ce357424abe4136a5a3f (patch)
treeaffa25c529537389a9a4b6f77118fd4bc2666f28
parentcfd7436aafb1cbe3da3af4552e5b85ee9d3e651b (diff)
downloaddrakx-96484d7798de635f4df3ce357424abe4136a5a3f.tar
drakx-96484d7798de635f4df3ce357424abe4136a5a3f.tar.gz
drakx-96484d7798de635f4df3ce357424abe4136a5a3f.tar.bz2
drakx-96484d7798de635f4df3ce357424abe4136a5a3f.tar.xz
drakx-96484d7798de635f4df3ce357424abe4136a5a3f.zip
simplify
-rw-r--r--perl-install/network/netconnect.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index 5d09fe7ba..51479781c 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -518,11 +518,7 @@ killall pppd
add2hash($ethntf, $intf->{$ntf_name});
$net_device = $netc->{NET_DEVICE};
return "lan_intf" if $type eq 'cable';
- if ($::isInstall && $net_device eq $ethntf->{DEVICE}) {
- return 'lan_alrd_cfg';
- } else {
- return 'lan_protocol';
- }
+ $::isInstall && $net_device eq $ethntf->{DEVICE} ? 'lan_alrd_cfg' : 'lan_protocol';
},
},