File: prerm

package info (click to toggle)
smail 3.2.0.102-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,228 kB
  • ctags: 3,924
  • sloc: ansic: 41,366; sh: 3,434; makefile: 2,349; awk: 689; perl: 598; yacc: 427; sed: 2
file content (26 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (2)
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
#!/bin/sh -e
# Debian smail prerm script
# (c) 1998 Soenke Lange soenke@escher.north.de


case "$1" in
   upgrade)
	update-inetd --disable smtp || echo "no inetd.conf entry"
	/etc/init.d/smail stop || echo "no /etc/init.d/smail"
        exit 0
        ;;
   remove|purge)
    	update-inetd --disable smtp || echo "no inetd.conf entry"
    	/etc/init.d/smail stop || echo "no /etc/init.d/smail"
    	crontab -u mail -r || echo "no /var/spool/cron/crontabs/mail"
	exit 0
	;;
   *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 0
        ;;
esac