]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
support of debian and corel linux
authorThibault Godouet <yo8192@users.noreply.github.com>
Mon, 18 Sep 2000 08:24:51 +0000 (08:24 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Mon, 18 Sep 2000 08:24:51 +0000 (08:24 +0000)
print a message to invite user do uninstall manually in case of rc.local

script/boot-uninstall

index 623584b6588f5066b9544f2ad264897d539f6d0b..c369875cbfa825f292e9362f162399417ffbd353 100755 (executable)
@@ -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