This file is indexed.

postinst is in nfs-kernel-server 1:1.2.8-6ubuntu1.

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

set -e



case "$1" in
    configure)
	ucf --three-way /usr/share/nfs-kernel-server/conffiles/etc.exports /etc/exports
	ucf --three-way /usr/share/nfs-kernel-server/conffiles/nfs-kernel-server.default /etc/default/nfs-kernel-server

	for f in /var/lib/nfs/etab  \
		 /var/lib/nfs/rmtab \
		 /var/lib/nfs/xtab; do
	    [ -e $f ] || touch $f
	done

	update-rc.d nfs-kernel-server defaults 20 80 >/dev/null
    ;;
esac

act="restart"
[ "$1:$2" = "configure:" ] && act="start"
invoke-rc.d nfs-kernel-server $act