This file is indexed.

postrm is in initramfs-tools-tcos 0.89.93ubuntu2.

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


case "$1" in
    purge)
	 if getent group tcos >/dev/null; then
      	    [ -x /usr/sbin/delgroup ] && delgroup --quiet --system tcos > /dev/null || true
    	 fi

 	 # delete all generated files and dirs
	 rm -rf /var/lib/tcos/tftp
	 rm -rf /var/lib/tcos/fs-*
	 rm -rf /var/cache/tcos

	 rm -rf /var/lib/tftpboot/tcos
	 rmdir --ignore-fail-on-non-empty /var/lib/tftpboot || true

	 rm -f /etc/tcos/modules
	 rmdir --ignore-fail-on-non-empty /etc/tcos || true

    ;;
esac