summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-02-17 16:59:15 +0000
committerOlivier Blin <oblin@mandriva.org>2005-02-17 16:59:15 +0000
commit97f2b6059d2b75c41a4597aef5ac78495ab230ff (patch)
treecec0ba7cfcf8ef516d42578cc2f7d80b62671649 /perl-install
parent8985f9e2e38fcedc29b4dfff8e64bafcf92d658f (diff)
downloaddrakx-backup-do-not-use-97f2b6059d2b75c41a4597aef5ac78495ab230ff.tar
drakx-backup-do-not-use-97f2b6059d2b75c41a4597aef5ac78495ab230ff.tar.gz
drakx-backup-do-not-use-97f2b6059d2b75c41a4597aef5ac78495ab230ff.tar.bz2
drakx-backup-do-not-use-97f2b6059d2b75c41a4597aef5ac78495ab230ff.tar.xz
drakx-backup-do-not-use-97f2b6059d2b75c41a4597aef5ac78495ab230ff.zip
remove set_cnx_script
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/tools.pm8
1 files changed, 1 insertions, 7 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index e9568e200..a3af62866 100644
--- a/perl-install/network/tools.pm
+++ b/perl-install/network/tools.pm
@@ -9,18 +9,12 @@ use vars qw(@ISA @EXPORT @EXPORT_OK);
use MDK::Common::System qw(getVarsFromSh);
@ISA = qw(Exporter);
-@EXPORT = qw(connect_backend connected connected_bg disconnect_backend is_dynamic_ip passwd_by_login read_secret_backend set_cnx_script test_connected remove_initscript write_secret_backend start_interface stop_interface);
+@EXPORT = qw(connect_backend connected connected_bg disconnect_backend is_dynamic_ip passwd_by_login read_secret_backend test_connected remove_initscript write_secret_backend start_interface stop_interface);
our $connect_prog = "/etc/sysconfig/network-scripts/net_cnx_pg";
our $connect_file = "/etc/sysconfig/network-scripts/net_cnx_up";
our $disconnect_file = "/etc/sysconfig/network-scripts/net_cnx_down";
-sub set_cnx_script {
- my ($netc, $type, $up, $down, $type2) = @_;
- $netc->{internet_cnx}{$type}{$_->[0]} = $_->[1] foreach [$connect_file, $up], [$disconnect_file, $down];
- $netc->{internet_cnx}{$type}{type} = $type2;
-}
-
sub write_secret_backend {
my ($a, $b) = @_;
foreach my $i ("$::prefix/etc/ppp/pap-secrets", "$::prefix/etc/ppp/chap-secrets") {