]> arthur.barton.de Git - netatalk.git/commitdiff
altered code so if things stop prematurely you get told why
authorsibaz <sibaz>
Sat, 24 Aug 2002 01:33:15 +0000 (01:33 +0000)
committersibaz <sibaz>
Sat, 24 Aug 2002 01:33:15 +0000 (01:33 +0000)
distrib/initscripts/rc.atalk.redhat.tmpl

index 873391ee6555bff9d1b5a88fb371706c0ee761b8..7fbc081940214e0e5f7e422e0542591f5f90b8ae 100644 (file)
@@ -25,15 +25,24 @@ ATALK_SBIN=:SBINDIR:
 # Check for IP Encapsulation support
 #/sbin/modprobe ipddp || echo "[could not load IP encapsulation]"
 
-test -x ${ATALK_SBIN}/atalkd || exit 0
+if [ ! -x ${ATALK_SBIN}/atalkd ]; then
+     echo "[${ATALK_SBIN}/atalkd not found.  Did it compile?]";
+     exit 0;
+fi
 
-test -f ${ATALK_CONF_DIR}/netatalk.conf || exit 0
+if [ ! -f ${ATALK_CONF_DIR}/netatalk.conf ]; then
+     echo "[${ATALK_CONF_DIR}/netatalk.conf not found]";
+     exit 0;
+fi
 
 # read in netatalk configuration
 . ${ATALK_CONF_DIR}/netatalk.conf
 
 # Check that networking is up.
-[ ${NETWORKING} = "no" ] && exit 0
+if [ ${NETWORKING} = "no" ] 
+     echo "[Network isn't started]"; 
+     exit 0;
+fi
 
 # initialize return values
 RETVAL=1