diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-29 22:43:33 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-29 22:43:33 +0000 |
commit | 2653652a0e4a6a599815a844903ad0aabe354be6 (patch) | |
tree | 88bd05fbf84035d77c55918496a343fba0cbc041 /perl-install/network/adsl.pm | |
parent | cc811738967e8413a73da19380af65215822b1e2 (diff) | |
download | drakx-2653652a0e4a6a599815a844903ad0aabe354be6.tar drakx-2653652a0e4a6a599815a844903ad0aabe354be6.tar.gz drakx-2653652a0e4a6a599815a844903ad0aabe354be6.tar.bz2 drakx-2653652a0e4a6a599815a844903ad0aabe354be6.tar.xz drakx-2653652a0e4a6a599815a844903ad0aabe354be6.zip |
convert some write_cnx_script() callers into set_cnx_script() ones
Diffstat (limited to 'perl-install/network/adsl.pm')
-rw-r--r-- | perl-install/network/adsl.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/network/adsl.pm b/perl-install/network/adsl.pm index d9695f28c..b1c5fe82a 100644 --- a/perl-install/network/adsl.pm +++ b/perl-install/network/adsl.pm @@ -218,7 +218,7 @@ user "$adsl->{login}" /usr/bin/killall pppoe pppd\n), }, ); - write_cnx_script($netc, "adsl", join("\n", + set_cnx_script($netc, "adsl", join("\n", "/sbin/route del default", $modems{$adsl_device}{start}, # /usr/sbin/pppd call adsl @@ -230,7 +230,7 @@ user "$adsl->{login}" ); } elsif ($adsl_type eq 'dhcp') { - write_cnx_script($netc, 'adsl', + set_cnx_script($netc, 'adsl', qq( /sbin/route del default #$modems{$adsl_device}{start} @@ -244,7 +244,7 @@ INTERFACE=`$modems{$adsl_device}{get_intf}` $netc->{adsltype}); } elsif ($adsl_type eq 'static') { # TODO: handle manually configured (new feature) - write_cnx_script($netc, 'adsl', + set_cnx_script($netc, 'adsl', qq( /sbin/route del default #$modems{$adsl_device}{start} @@ -269,7 +269,7 @@ INTERFACE=`$modems{$adsl_device}{get_intf}` } "$::prefix/etc/analog/adiusbadsl.conf"; } elsif ($adsl_device eq 'speedtouch') { # speedtouch really is used only with pppoa, let its own script handle firmware upload and the like: - write_cnx_script($netc, 'adsl', + set_cnx_script($netc, 'adsl', qq(/sbin/route del default /usr/share/speedtouch/speedtouch.sh start\n), "/usr/share/speedtouch/speedtouch.sh stop\n", |