/[fai]/trunk/debian/postinst
ViewVC logotype

Contents of /trunk/debian/postinst

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2318 - (show annotations) (download)
Fri Jul 9 09:57:55 2004 UTC (8 years, 10 months ago) by lange
File size: 1702 byte(s)
add info for make-fai-nfsroot.conf
1 #! /bin/sh
2
3 # $Id $
4 #*********************************************************************
5 # postinst -- setup fai
6 #
7 # This script is part of FAI (Fully Automatic Installation)
8 # Copyright (c) 2000-2004 by Thomas Lange, Universitaet zu Koeln
9 #*********************************************************************
10 #
11 # see: dh_installdeb(1)
12
13 set -eu
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
33 case "$1" in
34 configure)
35
36 # remove old config file
37 [ -e /etc/fai/fai.conf ] && rm -f /etc/fai.conf
38
39 echo "Now edit fai.conf, make-fai-nfsroot.conf and sources.list in /etc/fai and call fai-setup."
40
41 ;;
42
43 abort-upgrade|abort-remove|abort-deconfigure)
44
45 ;;
46
47 *)
48 echo "postinst called with unknown argument \`$1'" >&2
49 exit 0
50 ;;
51 esac
52
53 # dh_installdeb will replace this with shell code automatically
54 # generated by other debhelper scripts.
55
56 #DEBHELPER#
57
58 exit 0

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5