]> git.meshlink.io Git - catta/blobdiff - initscript/debian/avahi-dnsconfd.in
Merge remote branch 'origin/master-tx'
[catta] / initscript / debian / avahi-dnsconfd.in
index ee63e06730ffbcc64851deafa2a72408a11fbf66..67c28735bc6fe819a4822a1bbb868091cee41506 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_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