On Wednesday 20 December 2006 16:06, Andreas Barth wrote: > I don't mind to have the order changed, but this change is not ok: > > + # be shure we get new startscript > + if [ -n "$2" ] && dpkg --compare-versions "$2" lt > "0.1.14-beta-4"; then + rm -f > /etc/rc?.d/*policyd-weight > + fi > > Because that will re-enable policyd-weight for all people who disabled > it, iow an RC-bug by itself.
Okay .. so the following should handle this:
if [ -n "$2" ] && dpkg --compare-versions "$2" lt "0.1.14-beta-6"; then
if [ -L /etc/rc2.d/S40policyd-weight ] || [ -L /etc/rc2.d/S20policyd-weight
] ; then
update-rc.d -f policyd-weight remove >/dev/null
fi
fi
With this also changed:
$ grep dh_installinit debian/rules
dh_installinit -- defaults 19 21
If you agree, I'll upload it in this way.
Thanks and regards, Jan.
--
Never write mail to <[EMAIL PROTECTED]>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT d-- s+: a- C+++ UL++++ P+ L+++ E- W+++ N+++ o++ K++ w--- O M V- PS PE
Y++ PGP++ t-- 5 X R tv- b+ DI- D++ G++ e++ h-- r+++ y+++
------END GEEK CODE BLOCK------
pgpY3nlxKTiFz.pgp
Description: PGP signature

