run-postinsts.prerm 377 B

12345678910111213141516171819
  1. #!/bin/sh
  2. # Begin section update-rc.d
  3. if [ -z "$D" -a -x "/etc/init.d/run-postinsts" ]; then
  4. /etc/init.d/run-postinsts stop || :
  5. fi
  6. # End section update-rc.d
  7. OPTS=""
  8. if [ -n "$D" ]; then
  9. OPTS="--root=$D"
  10. fi
  11. if type systemctl >/dev/null 2>/dev/null; then
  12. if [ -z "$D" ]; then
  13. systemctl stop run-postinsts.service
  14. fi
  15. systemctl $OPTS disable run-postinsts.service
  16. fi