File: prerm

package info (click to toggle)
fml 4.0.3.dfsg-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,528 kB
  • ctags: 5
  • sloc: perl: 711; sh: 95; makefile: 88
file content (23 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

test -d /var/spool/ml || exit 0;
cd /var/spool/ml

case "$1" in
 remove|purge)
	for i in *
        do
	   test etc = "$i" && continue
	   test fmlserv = "$i" && continue
	   test -d "$i" || continue
	   test -f "$i/cf" && test -x /usr/sbin/fmlconfigure && /usr/sbin/fmlconfigure "$1" "$i"
        done
	if [ "$1" = purge ]; then
	  rm -rf /var/spool/ml
	fi
	;;
 *)
	# ???
	;;
esac
#DEBHELPER#