diff options
Diffstat (limited to 'initscript/debian/avahi-dnsconfd.in')
-rwxr-xr-x | initscript/debian/avahi-dnsconfd.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/initscript/debian/avahi-dnsconfd.in b/initscript/debian/avahi-dnsconfd.in index ee63e06..ac34804 100755 --- a/initscript/debian/avahi-dnsconfd.in +++ b/initscript/debian/avahi-dnsconfd.in @@ -75,6 +75,16 @@ else return $1 } + log_warning_msg () { + if log_use_fancy_output; then + YELLOW=`$TPUT setaf 3` + NORMAL=`$TPUT op` + echo "$YELLOW*$NORMAL $@" + else + echo "$@" + fi + } + fi #set -e @@ -93,6 +103,7 @@ AVAHI_DNSCONFD_START=1 test -f /etc/default/avahi-dnsconfd && . /etc/default/avahi-dnsconfd if [ "$AVAHI_DNSCONFD_START" != "1" -a "$1" != "stop" ]; then + log_warning_msg "Not starting $DESC $NAME, disabled via /etc/default/$NAME" exit 0 fi |