From: Thibault Godouet Date: Mon, 18 Sep 2000 08:24:51 +0000 (+0000) Subject: support of debian and corel linux X-Git-Tag: ver2_9_4~554 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e9ba3bd9a3c79e3d1079fb7564be347f6e08917;p=thirdparty%2Ffcron.git support of debian and corel linux print a message to invite user do uninstall manually in case of rc.local --- diff --git a/script/boot-uninstall b/script/boot-uninstall index 623584b..c369875 100755 --- a/script/boot-uninstall +++ b/script/boot-uninstall @@ -2,16 +2,27 @@ # Uninstall fcron under SysV system. # -# $Id: boot-uninstall,v 1.2 2000-05-15 18:28:25 thib Exp $ +# $Id: boot-uninstall,v 1.3 2000-09-18 08:24:51 thib Exp $ PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin" -rm -f /etc/rc.d/init.d/fcron-debug -rm -f /etc/rc.d/init.d/fcron +ROOTDIR="" +if test -d /etc/rc.d/init.d/; then + ROOTDIR="/etc/rc.d" +elif test -d /etc/init.d/; then + ROOTDIR="/etc" +fi +if test $ROOTDIR != ""; then + rm -f $ROOTDIR/init.d/fcron-debug + rm -f $ROOTDIR/init.d/fcron -rm -f /etc/rc.d/rc3.d/S40fcron -rm -f /etc/rc.d/rc4.d/S40fcron -rm -f /etc/rc.d/rc5.d/S40fcron + rm -f $ROOTDIR/rc2.d/S40fcron + rm -f $ROOTDIR/rc3.d/S40fcron + rm -f $ROOTDIR/rc4.d/S40fcron + rm -f $ROOTDIR/rc5.d/S40fcron -rm -f /etc/rc.d/rc0.d/K60fcron -rm -f /etc/rc.d/rc6.d/K60fcron + rm -f $ROOTDIR/rc0.d/K60fcron + rm -f $ROOTDIR/rc6.d/K60fcron +else + echo "You may delete fcron from your rc.local manually" +fi