X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=initscript%2Fdebian%2Favahi-daemon.in;h=97fa1579398a8a285340412cbfefbcdce81f9537;hb=53ac2245c30daf71413dc52b07676bdd823729b4;hp=553db781513c055e9ef21e76e086ad15f45efdb1;hpb=13c8a680f9685baba470123aa7bee015cb890438;p=catta diff --git a/initscript/debian/avahi-daemon.in b/initscript/debian/avahi-daemon.in index 553db78..97fa157 100755 --- a/initscript/debian/avahi-daemon.in +++ b/initscript/debian/avahi-daemon.in @@ -1,7 +1,5 @@ #!/bin/sh -# $Id$ - # This file is part of avahi. # # avahi is free software; you can redistribute it and/or modify it @@ -75,6 +73,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 +101,7 @@ AVAHI_DAEMON_START=1 test -f /etc/default/avahi-daemon && . /etc/default/avahi-daemon if [ "$AVAHI_DAEMON_START" != "1" -a "$1" != "stop" ]; then + log_warning_msg "Not starting $DESC $NAME, disabled via /etc/default/$NAME" exit 0 fi