From: Dinko Korunic Date: Wed, 24 Feb 2010 13:47:57 +0000 (+0100) Subject: - zahvat za rjesenje undivertanja grub/grub-probea X-Git-Tag: debian/2.6.26.6~4 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=d927a3add91f6dbeda0a4bc1fc0b6821b15d62c3;p=kernel-cn.git - zahvat za rjesenje undivertanja grub/grub-probea --- 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.