File: boot-uninstall

package info (click to toggle)
fcron 3.0.1-1.3
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 3,028 kB
  • ctags: 642
  • sloc: ansic: 7,978; sh: 1,107; makefile: 352; perl: 57
file content (35 lines) | stat: -rwxr-xr-x 685 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
# Uninstall fcron under SysV system.
#

# $Id: boot-uninstall,v 1.8 2001/07/10 10:52:27 thib Exp thib $

PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
if test -d /usr/ucb; then
    PATH=/usr/ucb:$PATH
fi

if test `uname -s` = "FreeBSD"; then
  rm -f /usr/local/etc/rc.d/fcron.sh
else
  ROOTDIR=""
  if test -f /etc/rc.d/init.d/fcron; then
    ROOTDIR="/etc/rc.d"
  elif test -f /etc/init.d/fcron; then
    ROOTDIR="/etc"
  fi
  if test $ROOTDIR != ""; then
    rm -f $ROOTDIR/init.d/fcron

    for i in 0 1 2 3 4 5 6
    do
    rm -f $ROOTDIR/rc$i.d/???fcron
    done

  else
    echo
    echo "You should delete fcron from your boot script manually"
    echo
  fi
fi