xcat-core/xCAT-nbroot2/debian/xcat-genesis-amd64.postinst
arifali 60867d1ce9 Initial commit of debian files for xCAT-genesis
* This will only compile on maverick if you install the lldpad from the latest repo from ubuntu i.e. precise (12.04)
* The package that this produces hasn't been tested yet, so will be testing once all the core packages are built

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12139 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-05 22:46:12 +00:00

44 lines
1.1 KiB
Bash

#!/bin/sh
# postinst script for xcat-genesis
#
# see: dh_installdeb(1)
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>
# * <postinst> `abort-remove'
# * <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)
if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image
. /etc/profile.d/xcat.sh
mknb x86_64
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0