1234567891011121314151617181920212223242526 |
- if [ -z "$D" ]; then
- killall -q -HUP dbus-daemon || true
- fi
- OPTS=""
- if [ -n "$D" ]; then
- OPTS="--root=$D"
- fi
- if type systemctl >/dev/null 2>/dev/null; then
- systemctl $OPTS enable avahi-daemon.service
- if [ -z "$D" -a "enable" = "enable" ]; then
- systemctl --no-block restart avahi-daemon.service
- fi
- fi
- # Begin section update-rc.d
- if type update-rc.d >/dev/null 2>/dev/null; then
- if [ -n "$D" ]; then
- OPT="-r $D"
- else
- OPT="-s"
- fi
- update-rc.d $OPT avahi-daemon defaults 21 19
- fi
- # End section update-rc.d
|