diff options
author | damien <damien@mandriva.com> | 2001-09-05 22:49:20 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-09-05 22:49:20 +0000 |
commit | 0891de4e1e37e805ff00e13cdf821dbdc980bf86 (patch) | |
tree | 0a22558728016ae768fcb413491c839fe757f278 /perl-install/network/tools.pm | |
parent | b418c736175ac34cb70a98ea421a4320974d3b5c (diff) | |
download | drakx-backup-do-not-use-0891de4e1e37e805ff00e13cdf821dbdc980bf86.tar drakx-backup-do-not-use-0891de4e1e37e805ff00e13cdf821dbdc980bf86.tar.gz drakx-backup-do-not-use-0891de4e1e37e805ff00e13cdf821dbdc980bf86.tar.bz2 drakx-backup-do-not-use-0891de4e1e37e805ff00e13cdf821dbdc980bf86.tar.xz drakx-backup-do-not-use-0891de4e1e37e805ff00e13cdf821dbdc980bf86.zip |
corrected initcript
Diffstat (limited to 'perl-install/network/tools.pm')
-rw-r--r-- | perl-install/network/tools.pm | 12 |
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) |