multistrap/debian/emdebian-rootfs.postinst
codehelp 805d62ee59 preparing the new emdebian-rootfs source package
git-svn-id: http://emdebian.org/svn/current@5745 563faec7-e20c-0410-992a-a66f704d0ccd
2009-03-28 21:55:28 +00:00

35 lines
818 B
Bash
Executable file

#! /bin/sh
# clear out the now unsupported emsandbox conf file.
set -e
case "$1" in
configure)
if [ -f '/etc/emsandbox.conf' ]; then
# Remove the configuration files
if [ -e /usr/bin/ucf ]; then
ucfr --purge emdebian-rootfs /etc/emsandbox.conf
ucf --purge /etc/emsandbox.conf
fi
rm /etc/emsandbox.conf
rm -f /etc/emsandbox.conf.ucf-old
rm -f /etc/emsandbox.conf.ucf-new
rm -f /etc/emsandbox.conf.ucf-dist
fi
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
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