X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpreinst;h=6c5b763d5b7aa2bdff471c443f696e6f7a42e06d;hb=8e63ec3203b5575cd88940fea9ee242d7725b531;hp=f3f47400b6d7896ed173566d6a4b7050f794154e;hpb=d927a3add91f6dbeda0a4bc1fc0b6821b15d62c3;p=kernel-cn.git diff --git a/debian/preinst b/debian/preinst index f3f4740..6c5b763 100755 --- a/debian/preinst +++ b/debian/preinst @@ -1,5 +1,5 @@ #!/bin/sh -# preinst script for kernel-2.6-cn +# preinst script for kernel-cn # # see: dh_installdeb(1) @@ -32,6 +32,12 @@ case "$1" in ;; esac +# check if the config script fixed the grub diverts +if [ -e /usr/sbin/grub.real -o -e /usr/sbin/grub-probe.real ]; then + echo "CN: Please install Grub2 package using: apt-get install grub-pc" + exit 1 +fi + # make GRUB template directory if [ ! -d /boot/grub ]; then echo "CN: Made /boot/grub directory."