[Zack Weinberg]
> I don't know how to do this; can you point me at instructions?

I can point to you an example.  In the latest upload of the lprng
package, I added code like this before the #DEBHELPER# marker to
detect the incorrect setup and remove the broken configuration (before
the correct one is inserted in the #DEBHELPER# block.

  # Those using dependency based boot sequencing with sysv-rc and installing
  # lprng before version 3.8.A-2.2 would miss the runlevel 4 symlink.
  # Recover from this.
  if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "3.8.A-2.2" \
     && [ -f /etc/rc2.d/[SK][0-9][0-9]lprng ] && [ -f 
/etc/rc4.d/K[0-9][0-9]lprng ]
  then
     update-rc.d -f lprng remove
  fi

Happy hacking,
-- 
Petter Reinholdtsen



-- 
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