This file is indexed.

postrm is in tcos-core 0.89.86.

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


reload_dbus() {
   if [ -x "/etc/init.d/dbus" ]; then
       if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
           invoke-rc.d dbus reload || true
        else
           /etc/init.d/dbus reload || true
       fi
   fi
}

# restart dbus with new tcosmonitor.conf
# on purge delete tcosmonitor.conf
case "$1" in
    configure|reconfigure)
      reload_dbus
    ;;
    purge)
      if getent group tcosmonitor-exclude >/dev/null; then
          delgroup --quiet --system tcosmonitor-exclude > /dev/null || true
      fi
      if getent group tcos >/dev/null; then
          delgroup --quiet --system tcos > /dev/null || true
      fi
       rm -f /etc/dbus/system.d/tcosmonitor.conf
       reload_dbus
    ;;
    #remove)
    #;;
esac