dbus-1.postinst 519 B

123456789101112131415161718192021
  1. # If both systemd and sysvinit are enabled, mask the dbus-1 init script
  2. if true; then
  3. if [ -n "$D" ]; then
  4. OPTS="--root=$D"
  5. fi
  6. systemctl $OPTS mask dbus-1.service
  7. fi
  8. if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
  9. /etc/init.d/populate-volatile.sh update
  10. fi
  11. # Begin section update-rc.d
  12. if type update-rc.d >/dev/null 2>/dev/null; then
  13. if [ -n "$D" ]; then
  14. OPT="-r $D"
  15. else
  16. OPT="-s"
  17. fi
  18. update-rc.d $OPT dbus-1 start 02 5 3 2 . stop 20 0 1 6 .
  19. fi
  20. # End section update-rc.d