Package: avahi-daemon Tags: patch Hi,
Here a patch to add a warning when avahi-daemon is disabled. When no messages, the user may think the daemon is running successfully, this is misleading. Regards Laurent
--- /tmp/etc/init.d/avahi-daemon 2006-11-13 20:10:00.000000000 +0100
+++ /etc/init.d/avahi-daemon 2007-01-03 01:15:54.000000000 +0100
@@ -75,6 +75,16 @@
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 @@
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
pgpMiQHDS0KWz.pgp
Description: PGP signature

