This file is indexed.

prerm is in avahi-daemon 0.6.32~rc+dfsg-1ubuntu2.3.

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

set -e

# avoid cancelling of "stop" via socket or D-Bus activation
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
    systemctl mask --runtime avahi-daemon.service
    # stop avahi-daemon manually since invoke-rc.d currently doesn't
    # deal with masked services (see Bug #717109)
    systemctl stop avahi-daemon.service || true
fi

# Automatically added by dh_installinit
if ([ -x "/etc/init.d/avahi-daemon" ] || [ -e "/etc/init/avahi-daemon.conf" ]) && \
   [ "$1" = remove ]; then
	invoke-rc.d avahi-daemon stop || exit $?
fi
# End automatically added section