5
# summary of how this script can be called:
6
# * <postinst> `configure' <most-recently-configured-version>
7
# * <old-postinst> `abort-upgrade' <new version>
8
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
10
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
11
# <failed-install-package> <version> `removing'
12
# <conflicting-package> <version>
13
# for details, see http://www.debian.org/doc/debian-policy/ or
14
# the debian-policy package
20
if [ ! -d $FAI_CONFIGDIR/class ]; then
21
mkdir -p $FAI_CONFIGDIR
22
cp -a /usr/share/doc/fai-doc/examples/simple/* $FAI_CONFIGDIR
23
echo "Simple examples copied to config space $FAI_CONFIGDIR."
27
abort-upgrade|abort-remove|abort-deconfigure)
32
echo "postinst called with unknown argument \`$1'" >&2