diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-24 18:09:19 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-24 18:09:19 +0000 |
commit | 1408f276b60b9a94c7c993c79cd0236057ec91da (patch) | |
tree | 703d0f4b3be3cba8d5dafb7a4ccd5cb45b2af0bf /perl-install/network | |
parent | 9244ec242de2ad2f73f92ff08b21dd0b6947350b (diff) | |
download | drakx-1408f276b60b9a94c7c993c79cd0236057ec91da.tar drakx-1408f276b60b9a94c7c993c79cd0236057ec91da.tar.gz drakx-1408f276b60b9a94c7c993c79cd0236057ec91da.tar.bz2 drakx-1408f276b60b9a94c7c993c79cd0236057ec91da.tar.xz drakx-1408f276b60b9a94c7c993c79cd0236057ec91da.zip |
(adsl_conf_backend) alter both /etc/analog/adiusbadsl.conf and
/etc/eagle-usb/eagle-usb.conf too when configuring sagemXXX
Diffstat (limited to 'perl-install/network')
-rw-r--r-- | perl-install/network/adsl.pm | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm index 333d92003..09d295840 100644 --- a/perl-install/network/adsl.pm +++ b/perl-install/network/adsl.pm @@ -262,11 +262,13 @@ INTERFACE=`$modems{$adsl_device}{get_intf}` if ($adsl_device eq 'sagem') { my %l = map { $_ => sprintf("%08s", $netc->{$_}) } qw(vci vpi Encapsulation); # set vpi and vci parameters for sagem - substInFile { - s/VCI=.*\n/VCI=$l{vci}\n/; - s/VPI=.*\n/VPI=$l{vpi}\n/; - s/Encapsulation=.*\n/Encapsulation=$l{Encapsulation}\n/; - } "$::prefix/etc/analog/adiusbadsl.conf"; + foreach my $cfg_file (qw(/etc/analog/adiusbadsl.conf /etc/eagle-usb/eagle-usb.conf)) { + substInFile { + s/VCI=.*\n/VCI=$l{vci}\n/; + s/VPI=.*\n/VPI=$l{vpi}\n/; + s/Encapsulation=.*\n/Encapsulation=$l{Encapsulation}\n/; + } "$::prefix$cfg_file"; + } } elsif ($adsl_device eq 'speedtouch') { # speedtouch really is used only with pppoa, let its own script handle firmware upload and the like: set_cnx_script($netc, 'adsl', |