]> granicus.if.org Git - fcron/commitdiff
use /etc/init.d/ rather than /etc/rc.d/init.d if both exist (this is now the default...
authorthib <thib>
Fri, 26 Dec 2003 00:11:23 +0000 (00:11 +0000)
committerthib <thib>
Fri, 26 Dec 2003 00:11:23 +0000 (00:11 +0000)
script/boot-install

index fbc907720d3989ee1d12c16366ecd2777bd99f4c..593a11d5bf258fda3523fe74472a5ea4ce6891a4 100755 (executable)
@@ -2,7 +2,7 @@
 # Install fcron under SysV system.
 #
 
-# $Id: boot-install,v 1.36 2002-07-19 19:40:32 thib Exp $
+# $Id: boot-install,v 1.37 2003-12-26 00:11:23 thib Exp $
 
 # takes 6 arguments : the name of the BSD-like install program (with "-o" and the correct username)
 #                    the DESTSBIN directory
@@ -83,10 +83,10 @@ echo "The script proposes the following location to do it :"
 if test $IS_FREEBSD -eq 1; then
   echo "  /usr/local/etc/rc.d/fcron.sh"
 fi
-if test -d /etc/rc.d/init.d/; then
-  echo "  /etc/rc.d/init.d/fcron"
-elif test -d /etc/init.d/; then
+if test -d /etc/init.d/; then
   echo "  /etc/init.d/fcron"
+elif test -d /etc/rc.d/init.d/; then
+  echo "  /etc/rc.d/init.d/fcron"
 fi
 if test -f /etc/rc.d/rc.local; then
   echo "  /etc/rc.d/rc.local"
@@ -138,10 +138,10 @@ fi
 
 INSTALL="nothing"
 ROOTDIR=""
-if test -d /etc/rc.d/init.d/; then
-    ROOTDIR="/etc/rc.d"
-elif test -d /etc/init.d/; then
+if test -d /etc/init.d/; then
     ROOTDIR="/etc"
+elif test -d /etc/rc.d/init.d/; then
+    ROOTDIR="/etc/rc.d"
 fi
 if test \( ! "$INSTALLED" -eq 1 \) -a \( "$ROOTDIR" != "" \); then
   if test $ANSWER -eq 2; then