From: Thibault Godouet Date: Tue, 30 May 2000 19:23:52 +0000 (+0000) Subject: support of systems other than Mandrake/Redhat improved X-Git-Tag: ver2_9_4~714 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=794a5d6a53db71b9ce857d35865b39e9644d8c7e;p=thirdparty%2Ffcron.git support of systems other than Mandrake/Redhat improved --- diff --git a/script/boot-install b/script/boot-install index 3bd2b55..5fa3e68 100755 --- a/script/boot-install +++ b/script/boot-install @@ -2,7 +2,7 @@ # Install fcron under SysV system. # -# $Id: boot-install,v 1.5 2000-05-24 17:51:17 thib Exp $ +# $Id: boot-install,v 1.6 2000-05-30 19:23:52 thib Exp $ # take two arguments : first is the compilation line arguments, in order # to determine if fcron should be installed with debugs options, @@ -19,13 +19,18 @@ fi if test -f /etc/rc.d/rc.M; then # Slackware - echo "fcron -b" >> /etc/rc.d/rc.local + if ! cat /etc/rc.d/rc.local | grep "fcron -b"; then + echo "fcron -b" >> /etc/rc.d/rc.local + fi -else if test -f /etc/rc; then +fi +if test -f /etc/rc; then # FreeBSD - echo "fcron -b" >> /etc/rc.d/rc.local - -else + if ! cat /etc/rc.local | grep "fcron -b"; then + echo "fcron -b" >> /etc/rc.local + fi +fi +if test -d /etc/rc.d/init.d/; then if echo $1 | grep -e '-DDEBUG'; then $2 -c -m 755 -o root script/sysVinit-launcher-debug /etc/rc.d/init.d/fcron else