X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostrm;h=13374b361f68ebffde6398488d4b89beb8d90ef9;hb=3ae9cfd0860afe734c6d96e33d9d4ec320497c9f;hp=ca2fee4ac445d1647033f8d5e32592be2a5d78c2;hpb=c44bb9f26d04ed1685faef002826eeece7d30335;p=kernel-cn.git diff --git a/debian/postrm b/debian/postrm index ca2fee4..13374b3 100755 --- a/debian/postrm +++ b/debian/postrm @@ -1,5 +1,5 @@ #!/bin/sh -# postrm script for bind9-cn +# postrm script for kernel-2.6-cn # # see: dh_installdeb(1) @@ -47,6 +47,18 @@ echo -n " modules" echo "." +################################################################################ + +DIVERT_TO="grub grub-probe" + +echo -n "CN: Undiverting binaries:" +for i in $DIVERT_TO; do + dpkg-divert --remove --rename --package 'kernel-2.6-cn' \ + --divert /usr/sbin/$i.real /usr/sbin/$i >/dev/null + echo -n " $i" +done +echo "." + # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts.