]> git.pld-linux.org Git - packages/dhcp.git/blobdiff - dhcp.init
- fix in checking is netforking is up.
[packages/dhcp.git] / dhcp.init
index b3f7afebd3b61c902cf490b09b31d56361f760d2..5709f4e96024ea7a5763a34095b95c11dc76e96a 100644 (file)
--- a/dhcp.init
+++ b/dhcp.init
 [ -f /etc/sysconfig/dhcp ] && . /etc/sysconfig/dhcp
 
 # Check that networking is up.
-[ "${NETWORKING}" = "no" ] && echo "Error: Networking is down" && exit 0
+if [ "${NETWORKING}" = "no" ]; then
+       echo "WARNING: Networking is down. Dhcpd sercice can't be runed."
+       exit 1
+fi
 
 
 # See how we were called.
This page took 0.065486 seconds and 4 git commands to generate.