run-postinsts.preinst 256 B

123456789101112
  1. #!/bin/sh
  2. if [ -z "$D" -a -f "/etc/init.d/run-postinsts" ]; then
  3. /etc/init.d/run-postinsts stop || :
  4. fi
  5. if type update-rc.d >/dev/null 2>/dev/null; then
  6. if [ -n "$D" ]; then
  7. OPT="-f -r $D"
  8. else
  9. OPT="-f"
  10. fi
  11. update-rc.d $OPT run-postinsts remove
  12. fi