summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-02-17 16:57:39 +0000
committerOlivier Blin <oblin@mandriva.org>2005-02-17 16:57:39 +0000
commit8985f9e2e38fcedc29b4dfff8e64bafcf92d658f (patch)
tree381e4c7fafa8f0a3d69c0268a4e37a8c35ebbbb7
parent830f0807b965f68025bfe36be23e7de1c952ecd0 (diff)
downloaddrakx-backup-do-not-use-8985f9e2e38fcedc29b4dfff8e64bafcf92d658f.tar
drakx-backup-do-not-use-8985f9e2e38fcedc29b4dfff8e64bafcf92d658f.tar.gz
drakx-backup-do-not-use-8985f9e2e38fcedc29b4dfff8e64bafcf92d658f.tar.bz2
drakx-backup-do-not-use-8985f9e2e38fcedc29b4dfff8e64bafcf92d658f.tar.xz
drakx-backup-do-not-use-8985f9e2e38fcedc29b4dfff8e64bafcf92d658f.zip
remove write_cnx_script
-rw-r--r--perl-install/network/tools.pm12
1 files changed, 2 insertions, 10 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index 5bf376dba..e9568e200 100644
--- a/perl-install/network/tools.pm
+++ b/perl-install/network/tools.pm
@@ -9,7 +9,7 @@ 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 write_cnx_script 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 set_cnx_script 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";
@@ -20,15 +20,6 @@ sub set_cnx_script {
$netc->{internet_cnx}{$type}{$_->[0]} = $_->[1] foreach [$connect_file, $up], [$disconnect_file, $down];
$netc->{internet_cnx}{$type}{type} = $type2;
}
-sub write_cnx_script {
- my ($netc) = @_;
- foreach ($connect_file, $disconnect_file) {
- output_with_perm("$::prefix$_", 0755,
- '#!/bin/bash
-' . if_(!$netc->{at_boot}, 'if [ "x$1" == "x--boot_time" ]; then exit; fi
-') . $netc->{internet_cnx}{$netc->{internet_cnx_choice}}{$_});
- }
-}
sub write_secret_backend {
my ($a, $b) = @_;
@@ -167,6 +158,7 @@ sub check_link_beat() {
$p = Net::Ping->new("icmp");
}
print $p->ping("www.mandrakesoft.com") ? 1 : 0;
+ 0;
});
}