]> git.meshlink.io Git - catta/blobdiff - initscript/debian/avahi-daemon.in
get rid of a lot of old svn cruft
[catta] / initscript / debian / avahi-daemon.in
index 553db781513c055e9ef21e76e086ad15f45efdb1..97fa1579398a8a285340412cbfefbcdce81f9537 100755 (executable)
@@ -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