This commit is contained in:
David Paleino 2009-06-20 09:17:06 +02:00
parent 1ab50e301e
commit 976fafa07e

View File

@ -1197,7 +1197,7 @@ _known_hosts_real()
# Add hosts reported by avahi, if it's available
# and if the daemon is started.
if type avahi-browse >&/dev/null; then
if [ -z "$(pidof avahi-daemon)" ]; then
if [ -n "$(pidof avahi-daemon)" ]; then
COMPREPLY=( "${COMPREPLY[@]}" $(
compgen -W "$( avahi-browse -kcpr _workstation._tcp | \
grep ^= | cut -d\; -f7 | sort -u )" -- $cur ) )