Am Sonntag, den 12.04.2009, 15:58 +0200 schrieb Felix Zielcke:

> 
> Here's a grub-common.postinst which removed it on upgrades.
> Robert what do you think, is there maybe some other/better way to
> archive this?
> 

Ah it was a bit wrong because of `bash -e' and it shouldn't be removed
on hurd arch.
And 10_freebsd should be removed too on non freebsd arch.
So here's another one:

    if [ -n "$2" ] ; then
       if dpkg --compare-versions $2 le 1.96+20090413-1 ; then
         if [ `dpkg-architecture -qDEB_HOST_ARCH_OS` != "hurd" -a -f 
/etc/grub.d/10_hurd ] ; then
           rm /etc/grub.d/10_hurd
         fi
         if [ `dpkg-architecture -qDEB_HOST_ARCH_OS` != "*freebsd" -a -f 
/etc/grub.d/10_freebsd ] ; then
           rm /etc/grub.d/10_freebsd
         fi
       fi
    fi

-- 
Felix Zielcke




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to