From d927a3add91f6dbeda0a4bc1fc0b6821b15d62c3 Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Wed, 24 Feb 2010 14:47:57 +0100 Subject: [PATCH] - zahvat za rjesenje undivertanja grub/grub-probea --- debian/postinst | 14 ++++++++++++++ debian/preinst | 12 ------------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/debian/postinst b/debian/postinst index 291078f..a36cf36 100755 --- a/debian/postinst +++ b/debian/postinst @@ -69,6 +69,20 @@ echo "CN: Removed old symlinks in / and /boot." ################################################################################ +DIVERT_TO="grub grub-probe" + +echo -n "CN: Undiverting binaries:" +for i in $DIVERT_TO; do + if [ -e /usr/sbin/$i.real ]; then + dpkg-divert --remove --rename --package 'kernel-2.6-cn' \ + --divert /usr/sbin/$i.real /usr/sbin/$i >/dev/null + echo -n " $i" + fi +done +echo "." + +################################################################################ + # intro msg echo -n "CN: Configuring system (this will take a while):" diff --git a/debian/preinst b/debian/preinst index b680d9a..f3f4740 100755 --- a/debian/preinst +++ b/debian/preinst @@ -49,18 +49,6 @@ fi ################################################################################ -DIVERT_TO="grub grub-probe" - -echo -n "CN: Undiverting binaries:" -for i in $DIVERT_TO; do - if [ -e /usr/sbin/$i.real ]; then - dpkg-divert --remove --rename --package 'kernel-2.6-cn' \ - --divert /usr/sbin/$i.real /usr/sbin/$i >/dev/null - fi - echo -n " $i" -done -echo "." - # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. -- 1.7.10.4