~fai/fai/fai.hardy

« back to all changes in this revision

Viewing changes to debian/fai-quickstart.postinst

  • Committer: Reinhard Tartler
  • Date: 2008-02-14 09:38:36 UTC
  • mfrom: (1.1.4052 ubuntu)
  • Revision ID: siretart@tauware.de-20080214093836-7h0setrddcbdu62q
Upload of 3.2.1-0ubuntu1 to gutsy

this merge contains all commits up to to release of 3.2.1-0ubuntu1 to
gutsy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
set -e
 
4
 
 
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>
 
9
#          <new-version>
 
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
 
15
#
 
16
 
 
17
case "$1" in
 
18
    configure)
 
19
        . /etc/fai/fai.conf
 
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."
 
24
        fi
 
25
    ;;
 
26
 
 
27
    abort-upgrade|abort-remove|abort-deconfigure)
 
28
 
 
29
    ;;
 
30
 
 
31
    *)
 
32
        echo "postinst called with unknown argument \`$1'" >&2
 
33
        exit 1
 
34
    ;;
 
35
esac
 
36
 
 
37
 
 
38
#DEBHELPER#
 
39
 
 
40
exit 0