summaryrefslogtreecommitdiffstats
path: root/perl-install/network/adsl.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-16 05:50:58 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-16 05:50:58 +0000
commit09a5612269302f75573678982dd2b0a4cc94b6c5 (patch)
treedd80ead2c3db1fd9e2a2ab8a88fd951e97bb02e6 /perl-install/network/adsl.pm
parent92acd8f845026bf836b4324c1aff7b0c50751a2b (diff)
downloaddrakx-09a5612269302f75573678982dd2b0a4cc94b6c5.tar
drakx-09a5612269302f75573678982dd2b0a4cc94b6c5.tar.gz
drakx-09a5612269302f75573678982dd2b0a4cc94b6c5.tar.bz2
drakx-09a5612269302f75573678982dd2b0a4cc94b6c5.tar.xz
drakx-09a5612269302f75573678982dd2b0a4cc94b6c5.zip
fix pppoe with sagem (write ETH=`/usr/sbin/eaglectrl -i` instead of ETH=sagem)
Diffstat (limited to 'perl-install/network/adsl.pm')
-rw-r--r--perl-install/network/adsl.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm
index a47fde34e..9f53e90c2 100644
--- a/perl-install/network/adsl.pm
+++ b/perl-install/network/adsl.pm
@@ -271,8 +271,9 @@ user "$adsl->{login}"
write_secret_backend($adsl->{login}, $adsl->{passwd});
if ($adsl_type eq 'pppoe') {
+ my $net_device = $modems{$adsl_device}{get_intf} ? "`$modems{$adsl_device}{get_intf}`" : $netc->{NET_DEVICE};
substInFile {
- s/ETH=.*\n/ETH=$netc->{NET_DEVICE}\n/;
+ s/ETH=.*\n/ETH=$net_device\n/;
s/USER=.*\n/USER=$adsl->{login}\n/;
s/DNS1=.*\n/DNS1=$netc->{dnsServer2}\n/;
s/DNS2=.*\n/DNS2=$netc->{dnsServer3}\n/;