#!/bin/sh set -e . /usr/share/debconf/confmodule case "${1}" in configure) db_get extlinux/install _INSTALL="${RET}" # boolean db_stop case "${_INSTALL}" in true) extlinux-update . /etc/default/extlinux if echo ${EXTLINUX_ROOT} | grep -qs UUID then _PARTITION="$(readlink -f $(echo /dev/disk/by-uuid/$(echo ${EXTLINUX_ROOT} | awk -F= '{ print $3 }')))" _DEVICE="$(echo ${_PARTITION} | sed -e 's|[0-9]||g')" else _DEVICE="$(echo ${EXTLINUX_ROOT} | awk -F= '{ print $2 }' | sed -e 's|[0-9]||g')" fi extlinux-install "${_DEVICE}" ;; *) if [ -x /etc/kernel/postinst.d/zz-extlinux ] then /etc/kernel/postinst.d/zz-extlinux fi ;; esac ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`${1}'" >&2 exit 1 ;; esac #DEBHELPER# exit 0