summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-01-24 15:57:54 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-01-24 15:57:54 +0000
commitc7776a7a64793a11e0bcd3f73e8d3ec541f2e6d0 (patch)
tree94c9dc34dbd0052347989105b289468269e70652 /perl-install/network
parent131521f5c232bbcea7055b00cf80604f87aa039f (diff)
downloaddrakx-c7776a7a64793a11e0bcd3f73e8d3ec541f2e6d0.tar
drakx-c7776a7a64793a11e0bcd3f73e8d3ec541f2e6d0.tar.gz
drakx-c7776a7a64793a11e0bcd3f73e8d3ec541f2e6d0.tar.bz2
drakx-c7776a7a64793a11e0bcd3f73e8d3ec541f2e6d0.tar.xz
drakx-c7776a7a64793a11e0bcd3f73e8d3ec541f2e6d0.zip
make adsl device choose somewhat readable (detabable though
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/netconnect.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index f0a0d1a57..b61192287 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -537,7 +537,7 @@ killall pppd
'sagem' => 'adiusbadsl',
'speedtouch' => 'speedtouch',
);
- $adsl_device = (find { $adsl_devices{$_} eq $ntf_name } keys %adsl_devices) || $ntf_name;
+ $adsl_device = { reverse %adsl_devices }->{$ntf_name} || $ntf_name; # ethernet device case
return 'adsl_unsupported_eci' if $adsl_device eq 'eci';
$netconnect::need_restart_network = member($adsl_device, qw(speedtouch eci));
$in->do_pkgs->install($packages{$adsl_device}) if $packages{$adsl_device};