summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-03-29 15:25:43 +0000
committerOlivier Blin <oblin@mandriva.org>2005-03-29 15:25:43 +0000
commit7645f7d22cb489ded87dfbe8a2010426c7f19e5a (patch)
tree88e5ee5ca0d8f43d25d5e4eb2bb37d2ade9658cf /perl-install
parent8fb77dec27f3d001026cedb4321fd9722620c1ba (diff)
downloaddrakx-7645f7d22cb489ded87dfbe8a2010426c7f19e5a.tar
drakx-7645f7d22cb489ded87dfbe8a2010426c7f19e5a.tar.gz
drakx-7645f7d22cb489ded87dfbe8a2010426c7f19e5a.tar.bz2
drakx-7645f7d22cb489ded87dfbe8a2010426c7f19e5a.tar.xz
drakx-7645f7d22cb489ded87dfbe8a2010426c7f19e5a.zip
fix NET_INTERFACE for sagem modems not using pppoa
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/netconnect.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/network/netconnect.pm b/perl-install/network/netconnect.pm
index a27211444..f47ba953f 100644
--- a/perl-install/network/netconnect.pm
+++ b/perl-install/network/netconnect.pm
@@ -1098,7 +1098,9 @@ notation (for example, 1.2.3.4).")),
$ethntf->{PEERNTPD} = bool2yesno($peerntpd);
$ethntf->{MII_NOT_SUPPORTED} = bool2yesno(!$hotplug);
$ethntf->{HWADDR} = $track_network_id or delete $ethntf->{HWADDR};
- $netc->{$_} = $ethntf->{DEVICE} foreach qw(NET_DEVICE NET_INTERFACE);
+ #- FIXME: special case for sagem where $ethntf->{DEVICE} is the result of a command
+ #- we can't always use $ntf_name because of some USB DSL modems
+ $netc->{$_} = $ntf_name eq "sagem" ? "sagem" : $ethntf->{DEVICE} foreach qw(NET_DEVICE NET_INTERFACE);
if ($auto_ip) {
#- delete gateway settings if gateway device is invalid or if reconfiguring the gateway interface to dhcp
$delete_gateway_settings->($ntf_name);