Testsuite: don't use pidof to check if avahi-daemon is running, cf. commit bb8912b06ff09f8fed253e7e5b14916e38a48733.
This commit is contained in:
parent
1bb351e227
commit
2888874fa9
@ -380,8 +380,8 @@ proc get_hosts {} {
|
||||
proc get_hosts_avahi {} {
|
||||
# Retrieving hosts is successful?
|
||||
if { [catch {exec bash -c {
|
||||
type avahi-browse >&/dev/null && [ -n "$(pidof avahi-daemon)" ] \
|
||||
&& avahi-browse -cpr _workstation._tcp | grep ^= | cut -d\; -f7 | sort -u
|
||||
type avahi-browse >&/dev/null && \
|
||||
&& avahi-browse -cpr _workstation._tcp 2>/dev/null | grep ^= | cut -d\; -f7 | sort -u
|
||||
}} hosts] } {
|
||||
# No, retrieving hosts yields error;
|
||||
# Reset hosts
|
||||
|
Loading…
x
Reference in New Issue
Block a user