From 81551e188b39aa4254475d59df12418d45d7b292 Mon Sep 17 00:00:00 2001 From: fzielcke-guest Date: Wed, 3 Jun 2009 12:49:59 +0000 Subject: [PATCH] args add grub-pc.preinst --- debian/grub-pc.preinst | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 debian/grub-pc.preinst diff --git a/debian/grub-pc.preinst b/debian/grub-pc.preinst new file mode 100644 index 000000000..5dfd43cbf --- /dev/null +++ b/debian/grub-pc.preinst @@ -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