summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-09-05 22:49:20 +0000
committerdamien <damien@mandriva.com>2001-09-05 22:49:20 +0000
commit0891de4e1e37e805ff00e13cdf821dbdc980bf86 (patch)
tree0a22558728016ae768fcb413491c839fe757f278 /perl-install/network
parentb418c736175ac34cb70a98ea421a4320974d3b5c (diff)
downloaddrakx-0891de4e1e37e805ff00e13cdf821dbdc980bf86.tar
drakx-0891de4e1e37e805ff00e13cdf821dbdc980bf86.tar.gz
drakx-0891de4e1e37e805ff00e13cdf821dbdc980bf86.tar.bz2
drakx-0891de4e1e37e805ff00e13cdf821dbdc980bf86.tar.xz
drakx-0891de4e1e37e805ff00e13cdf821dbdc980bf86.zip
corrected initcript
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/tools.pm12
1 files changed, 10 insertions, 2 deletions
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)