This file is indexed.

prerm is in avahi-daemon 0.7-3.1ubuntu1.

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
#!/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/11.1.3ubuntu1
if [ -x "/etc/init.d/avahi-daemon" ] && [ "$1" = remove ]; then
	invoke-rc.d avahi-daemon stop || exit 1
fi
# End automatically added section