]> git.pld-linux.org Git - packages/bootparamd.git/blobdiff - bootparamd.init
- cleaning
[packages/bootparamd.git] / bootparamd.init
index b0752d4908a6065efdcc3203191df48526b81ab9..36156b8c3da8a5a3c2b14695e7d5be88c9cf1e76 100644 (file)
 . /etc/sysconfig/network
 
 # Check that networking is up.
-if is_no "${NETWORKING}"; then
-       msg_network_down rwalld
-       exit 1
+if is_yes "${NETWORKING}"; then
+       if [ ! -f /var/lock/subsys/network ]; then
+               msg_network_down rwalld
+               exit 1
+       fi
+else
+       exit 0
 fi
 
 # See how we were called.
@@ -36,7 +40,7 @@ case "$1" in
                msg_already_running rpc.bootparamd
                exit 1
        fi
-        ;;
+       ;;
   stop)
        if [ -f /var/lock/subsys/rpc.bootparamd ]; then
                msg_stopping rpc.bootparamd
@@ -46,7 +50,7 @@ case "$1" in
                msg_not_running rpc.bootparamd
                exit 1
        fi      
-        ;;
+       ;;
   status)
        status rpc.bootparamd
        ;;
This page took 0.843639 seconds and 4 git commands to generate.