diff options
author | damien <damien@mandriva.com> | 2001-07-30 15:54:38 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-07-30 15:54:38 +0000 |
commit | 6c8dd68e7062a96d88a59cc128ac01ec28490a97 (patch) | |
tree | d4c1185a4853d53381e83894cd8f3b673495bd58 /perl-install/network/modem.pm | |
parent | 7aab173af2151843199dc229641f643538c8c161 (diff) | |
download | drakx-backup-do-not-use-6c8dd68e7062a96d88a59cc128ac01ec28490a97.tar drakx-backup-do-not-use-6c8dd68e7062a96d88a59cc128ac01ec28490a97.tar.gz drakx-backup-do-not-use-6c8dd68e7062a96d88a59cc128ac01ec28490a97.tar.bz2 drakx-backup-do-not-use-6c8dd68e7062a96d88a59cc128ac01ec28490a97.tar.xz drakx-backup-do-not-use-6c8dd68e7062a96d88a59cc128ac01ec28490a97.zip |
added internet connection selection in case of multiple configurations
Diffstat (limited to 'perl-install/network/modem.pm')
-rw-r--r-- | perl-install/network/modem.pm | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/perl-install/network/modem.pm b/perl-install/network/modem.pm index fea6d0903..aae50b068 100644 --- a/perl-install/network/modem.pm +++ b/perl-install/network/modem.pm @@ -7,7 +7,7 @@ use detect_devices; use mouse; use network::tools; use vars qw(@ISA @EXPORT); -use MDK::Common::Globals "network", qw($in $prefix $install $connect_file $disconnect_file); +use MDK::Common::Globals "network", qw($in $prefix $install); @ISA = qw(Exporter); @EXPORT = qw(pppConfig modem_detect_backend); @@ -19,17 +19,14 @@ sub configure{ $netcnx->{modem}{device}=$netc->{autodetect}{modem}; modem_step_1: pppConfig($netcnx->{$netcnx->{type}}, $mouse, $netc) or return; - output "$prefix$connect_file", - q(#!/bin/bash + write_cnx_script($netc, "modem", +q(#!/bin/bash ifup ppp0 -); - output "$prefix$disconnect_file", - q(#!/bin/bash +), +q(#!/bin/bash ifdown ppp0 killall pppd -); - chmod 0755, "$prefix$disconnect_file"; - chmod 0755, "$prefix$connect_file"; +)); if ($::isStandalone) { ask_connect_now($netcnx->{$netcnx->{type}}, 'ppp0') or goto modem_step_1 } 1; } |