This file is indexed.

postrm is in fts 1.1-1.1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
#!/bin/sh

set -e

if [ "$1" = "purge" ] ; then
    . /usr/share/debconf/confmodule

    deluser --quiet --system tftpd > /dev/null || true
    delgroup --quiet --system tftpd > /dev/null || true

    # Remove configuration file
	ftsconfig=/etc/fts/config

	for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist; do
		rm -f "$ftsconfig$ext"
	done

	rm -f $ftsconfig

	if which ucf >/dev/null; then
		ucf --purge $ftsconfig
	fi
	if which ucfr >/dev/null; then
		ucfr --purge fts $ftsconfig
	fi

    # See if there's some stuff that is not created by us
    db_version 2.0
    db_get "fts/tftppath"
    tftppath="$RET"

    #default
    rmdir "$tftppath/pxelinux.cfg" || true
    rmdir "$tftppath/pxelinux.static" || true
fi

# Automatically added by dh_installinit
if [ "$1" = "purge" ] ; then
	update-rc.d fts remove >/dev/null
fi
# End automatically added section
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section