avahi-daemon.prerm 373 B

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