This file is indexed.

postinst is in fai-quickstart 3.4.8ubuntu5.

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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /bin/sh

set -e

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#        * <old-postinst> `abort-upgrade' <new version>
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
#          <new-version>
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
#          <failed-install-package> <version> `removing'
#          <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
#

case "$1" in
    configure)

	# for upgrades from 3.2.20 to newer versions.
	if egrep -q ^FAI_CONFIGDIR= /etc/fai/fai.conf; then
	    echo "WARNING: The variable \$FAI_CONFIGDIR is still defined in /etc/fai/fai.conf."
	    echo "Please move it to /etc/fai/make-fai-nfsroot.conf."
	    echo "NOT doing any further configuration - please copy your configspace yourself"
	    exit 0
	fi

	. /etc/fai/make-fai-nfsroot.conf
	if [ ! -d $FAI_CONFIGDIR/class ]; then
	    mkdir -p $FAI_CONFIGDIR
	    cp -a /usr/share/doc/fai-doc/examples/simple/* $FAI_CONFIGDIR
	    echo "Simple examples copied to config space $FAI_CONFIGDIR."
	fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac




exit 0