From 0891de4e1e37e805ff00e13cdf821dbdc980bf86 Mon Sep 17 00:00:00 2001 From: damien Date: Wed, 5 Sep 2001 22:49:20 +0000 Subject: corrected initcript --- perl-install/network/tools.pm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'perl-install/network') diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm index cc4a5f14b..efb7f1bed 100644 --- a/perl-install/network/tools.pm +++ b/perl-install/network/tools.pm @@ -130,11 +130,19 @@ sub write_initscript { case "$1" in start) - action "Checking internet connections to start at boot" "} . "$connect_file --boot_time" . q{" + if [ -e } . $connect_file . q{ ]; then + action "Checking internet connections to start at boot" "} . "$connect_file --boot_time" . q{" + else + action "No connection to start" "true" + fi touch /var/lock/subsys/internet ;; stop) - action "Stopping internet connection if needed: " "} . "$disconnect_file --boot_time" . q{" + if [ -e } . $disconnect_file . q{ ]; then + action "Stopping internet connection if needed: " "} . "$disconnect_file --boot_time" . q{" + else + action "No connection to stop" "true" + fi rm -f /var/lock/subsys/internet ;; restart) -- cgit v1.2.1