Adding debian version 4.03+dfsg-7.
[syslinux-debian/hramrach.git] / debian / extlinux.postinst
bloba8d54841f3ffddb6585903c9c5eac548d673b946
1 #!/bin/sh
3 set -e
5 . /usr/share/debconf/confmodule
7 case "${1}" in
8 configure)
9 db_get extlinux/install
10 _INSTALL="${RET}" # boolean
12 db_stop
14 case "${_INSTALL}" in
15 true)
16 extlinux-update
18 . /etc/default/extlinux
20 if echo ${EXTLINUX_ROOT} | grep -qs UUID
21 then
22 _DEVICE="/dev/disk/by-uuid/$(echo ${EXTLINUX_ROOT} | awk -F= '{ print $3 }')"
23 else
24 _DEVICE="$(echo ${EXTLINUX_ROOT} | awk -F= '{ print $2 }' | sed -e 's|[0-9]||g')"
27 extlinux-install "${_DEVICE}"
31 if [ -x /etc/kernel/postinst.d/zz-extlinux ]
32 then
33 /etc/kernel/postinst.d/zz-extlinux
36 esac
39 abort-upgrade|abort-remove|abort-deconfigure)
44 echo "postinst called with unknown argument \`${1}'" >&2
45 exit 1
47 esac
49 #DEBHELPER#
51 exit 0