args add grub-pc.preinst

This commit is contained in:
fzielcke-guest 2009-06-03 12:49:59 +00:00
parent 7a2d7297de
commit 81551e188b

26
debian/grub-pc.preinst vendored Normal file
View File

@ -0,0 +1,26 @@
#!/bin/bash -e
case "$1" in
install|upgrade)
if grep -q "/sbin/update-grub" /etc/kernel-img.conf ; then
echo -e "\n/etc/kernel-img.conf still contains /sbin/update-grub in the hooks." >&2
echo "You need to change them to just update-grub without any path prefixed." >&2
echo -e "After you fixed it, run apt-get or aptitude again.\n" >&2
exit 1
fi
;;
abort-upgrade)
;;
*)
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