X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=a36cf364a09d42f8915f4513e9fc387f7c802ac1;hb=refs%2Fheads%2Flenny;hp=291078f61d0a10f291d244e9d0c4a023bba5ea20;hpb=b9eef33cb7294d6fb1ea859e4ff2f669ecac94e7;p=kernel-cn.git 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):"