summaryrefslogtreecommitdiffstats
path: root/perl-install/network/tools.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-01-26 17:00:28 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-01-26 17:00:28 +0000
commit9ba81bbbe9b45ecb8af22c8563a50f9da61af966 (patch)
treef1358a1ed951283a92e7709d6e3d6ac1b9a19ddb /perl-install/network/tools.pm
parent650f81d5b9b764b4ee897e0b04f936dadcfafa9f (diff)
downloaddrakx-9ba81bbbe9b45ecb8af22c8563a50f9da61af966.tar
drakx-9ba81bbbe9b45ecb8af22c8563a50f9da61af966.tar.gz
drakx-9ba81bbbe9b45ecb8af22c8563a50f9da61af966.tar.bz2
drakx-9ba81bbbe9b45ecb8af22c8563a50f9da61af966.tar.xz
drakx-9ba81bbbe9b45ecb8af22c8563a50f9da61af966.zip
get rid of global variables regarding connect/disconnect scripts
Diffstat (limited to 'perl-install/network/tools.pm')
-rw-r--r--perl-install/network/tools.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index 43dfff904..68eb03b86 100644
--- a/perl-install/network/tools.pm
+++ b/perl-install/network/tools.pm
@@ -5,13 +5,17 @@ use common;
use run_program;
use c;
use vars qw(@ISA @EXPORT @EXPORT_OK);
-use MDK::Common::Globals "network", qw($in $disconnect_file $connect_prog $connect_file);
+use MDK::Common::Globals "network", qw($in);
use MDK::Common::System qw(getVarsFromSh);
@ISA = qw(Exporter);
@EXPORT = qw(connect_backend connected connected_bg disconnect_backend is_dynamic_ip is_wireless_intf passwd_by_login read_providers_backend read_secret_backend test_connected write_cnx_script write_initscript write_secret_backend);
@EXPORT_OK = qw($in);
+our $connect_prog = "/etc/sysconfig/network-scripts/net_cnx_pg";
+my $connect_file = "/etc/sysconfig/network-scripts/net_cnx_up";
+my $disconnect_file = "/etc/sysconfig/network-scripts/net_cnx_down";
+
sub write_cnx_script {
my ($netc, $o_type, $o_up, $o_down, $o_type2) = @_;
if ($o_type) {