| 1 |
#! /bin/sh |
| 2 |
|
| 3 |
#********************************************************************* |
| 4 |
# postinst -- setup fai |
| 5 |
# |
| 6 |
# This script is part of FAI (Fully Automatic Installation) |
| 7 |
# Copyright (c) 2000-2006 by Thomas Lange, Universitaet zu Koeln |
| 8 |
#********************************************************************* |
| 9 |
# |
| 10 |
# see: dh_installdeb(1) |
| 11 |
|
| 12 |
set -e |
| 13 |
|
| 14 |
|
| 15 |
# summary of how this script can be called: |
| 16 |
# * <postinst> `configure' <most-recently-configured-version> |
| 17 |
# * <old-postinst> `abort-upgrade' <new version> |
| 18 |
# * <conflictor's-postinst> `abort-remove' `in-favour' <package> |
| 19 |
# <new-version> |
| 20 |
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' |
| 21 |
# <failed-install-package> <version> `removing' |
| 22 |
# <conflicting-package> <version> |
| 23 |
# for details, see /usr/share/doc/packaging-manual/ |
| 24 |
# |
| 25 |
# quoting from the policy: |
| 26 |
# Any necessary prompting should almost always be confined to the |
| 27 |
# post-installation script, and should be protected with a conditional |
| 28 |
# so that unnecessary prompting doesn't happen if a package's |
| 29 |
# installation fails and the `postinst' is called with `abort-upgrade', |
| 30 |
# `abort-remove' or `abort-deconfigure'. |
| 31 |
|
| 32 |
case "$1" in |
| 33 |
configure) |
| 34 |
|
| 35 |
echo "You might want to check fai.conf and nfsroot.conf in /etc/fai if you" |
| 36 |
echo "like to go with the defaults. You should edit /etc/fai/apt/sources.list" |
| 37 |
echo "for faster access to a package repository." |
| 38 |
;; |
| 39 |
|
| 40 |
abort-upgrade|abort-remove|abort-deconfigure) |
| 41 |
|
| 42 |
;; |
| 43 |
|
| 44 |
*) |
| 45 |
echo "postinst called with unknown argument \`$1'" >&2 |
| 46 |
exit 0 |
| 47 |
;; |
| 48 |
esac |
| 49 |
|
| 50 |
# dh_installdeb will replace this with shell code automatically |
| 51 |
# generated by other debhelper scripts. |
| 52 |
|
| 53 |
#DEBHELPER# |
| 54 |
|
| 55 |
exit 0 |