File: initscripts.postrm

package info (click to toggle)
sysvinit 2.88dsf-59
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,300 kB
  • ctags: 1,736
  • sloc: ansic: 7,096; sh: 3,883; perl: 371; makefile: 315
file content (80 lines) | stat: -rwxr-xr-x 2,362 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#! /bin/sh
#
# initscripts postrm
#

set -e
 
case "$1" in
  purge)
	#
	# Remove abandoned conffiles
	#
	rm -f /etc/init.d/bootclean
	rm -f /etc/init.d/bootclean.dpkg-old
	rm -f /etc/init.d/bootclean.sh
	rm -f /etc/init.d/bootclean.sh.dpkg-old
	rm -f /etc/default/bootlogd
	rm -f /etc/default/bootlogd.dpkg-old

	#
	# Remove configuration files
	#
	rm -f \
		/etc/default/rcS \
		/etc/motd.tail \
		/etc/motd.static

	#
	# Remove state files
	#
	rm -f /var/lib/initscripts/nologin

	#
	# Remove run time state files
	#
	rm -f /var/run/motd

	#
	# Remove log files
	#
	rm -f \
		/var/log/dmesg \
		/var/log/boot \
		/var/log/fsck/checkroot \
		/var/log/fsck/checkfs

	# Remove rc symlinks in the reverse dependency order they were
	# inserted
	update-rc.d rmnologin              remove >/dev/null || exit $?
	update-rc.d rc.local               remove >/dev/null || exit $?
	update-rc.d motd                   remove >/dev/null || exit $?
	update-rc.d bootlogs               remove >/dev/null || exit $?
	update-rc.d single                 remove >/dev/null || exit $?
	update-rc.d killprocs              remove >/dev/null || exit $?
	update-rc.d sendsigs               remove >/dev/null || exit $?
	update-rc.d umountnfs.sh           remove >/dev/null || exit $?
	update-rc.d umountfs               remove >/dev/null || exit $?
	update-rc.d umountroot             remove >/dev/null || exit $?
	update-rc.d reboot                 remove >/dev/null || exit $?
	update-rc.d halt                   remove >/dev/null || exit $?
	update-rc.d urandom                remove >/dev/null || exit $?
	update-rc.d bootmisc.sh            remove >/dev/null || exit $?
	update-rc.d mountnfs-bootclean.sh  remove >/dev/null || exit $?
	update-rc.d mountnfs.sh            remove >/dev/null || exit $?
	update-rc.d mountall-bootclean.sh  remove >/dev/null || exit $?
	update-rc.d mountall.sh            remove >/dev/null || exit $?
	update-rc.d checkfs.sh             remove >/dev/null || exit $?
	update-rc.d checkroot-bootclean.sh remove >/dev/null || exit $?
	update-rc.d checkroot.sh           remove >/dev/null || exit $?
	update-rc.d mountdevsubfs.sh       remove >/dev/null || exit $?
	update-rc.d hostname.sh            remove >/dev/null || exit $?
	update-rc.d mountkernfs.sh         remove >/dev/null || exit $?

	# Remove /dev/pts and /dev/shm ?
	;;
esac

#DEBHELPER#

: