On Wed, Mar 18, 2009 at 03:35:06PM +0100, Jan Wagner wrote: > Hi there, > > while thinking about how to solve #508189, where I need to change the > position > of the initscript in bootorder, I thought it would not sufficient to change > only the call of dh_installinit in the rules file. > > If an user changed the symlinks, I guess I will break his changes. How should > we handle this? Is there any best practise and/or policy how we should deal > with it? I think it's not usefull just to override the changes by the local > sysadmin.
The best thing we can do is handling at least the default case (the sysadmin didn't change anything) well in the postinst: if dpkg --compare-versions "$2" lt "0.6.1-2"; then if [ -e /etc/rc2.d/S20libvirt-bin ] && \ [ -e /etc/rc3.d/S20libvirt-bin ] && \ [ -e /etc/rc4.d/S20libvirt-bin ] && \ [ -e /etc/rc5.d/S20libvirt-bin ] && \ [ -e /etc/rc0.d/K20libvirt-bin ] && \ [ -e /etc/rc1.d/K20libvirt-bin ] && \ [ -e /etc/rc6.d/K20libvirt-bin ]; then update-rc.d -f libvirt-bin remove >/dev/null fi fi Cheers, -- Guido -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org