This file is indexed.

prerm is in nfs-kernel-server 1:1.3.4-2.1ubuntu5.

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

set -e

# Automatically added by dh_systemd_start/11.1.2ubuntu1
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
	deb-systemd-invoke stop 'nfs-server.service' >/dev/null || true
fi
# End automatically added section


case "$1" in
    remove|purge)
	[ -x /etc/init.d/nfs-kernel-server ] &&
	    invoke-rc.d nfs-kernel-server stop
	;;
esac

if [ "$1" != upgrade ]
then
    rm -f /var/lib/nfs/etab   \
          /var/lib/nfs/rmtab  \
          /var/lib/nfs/xtab
fi

exit 0