#!/bin/sh # postinst script for avahi-daemon set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in configure) adduser --disabled-password --quiet --system \ --home /var/run/avahi-daemon --no-create-home \ --gecos "Avahi mDNS daemon" --group avahi # Add the netdev group unless it's already there addgroup --quiet --system netdev || true # Ask the bus to reload the config file if [ -x "/etc/init.d/dbus" ]; then invoke-rc.d dbus force-reload || true fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # Automatically added by dh_installinit if [ -x "/etc/init.d/avahi-daemon" ]; then update-rc.d avahi-daemon start 14 2 3 4 5 . stop 86 0 1 6 . >/dev/null invoke-rc.d avahi-daemon start || exit $? fi # End automatically added section