From c9b74705993b84041f537fb49c198b5daa2d5259 Mon Sep 17 00:00:00 2001 From: bergware Date: Sat, 17 Jun 2023 20:53:28 +0200 Subject: [PATCH] rc.avahi update --- etc/rc.d/rc.avahidaemon | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/etc/rc.d/rc.avahidaemon b/etc/rc.d/rc.avahidaemon index 1d73c8cf2..786685a09 100755 --- a/etc/rc.d/rc.avahidaemon +++ b/etc/rc.d/rc.avahidaemon @@ -44,13 +44,11 @@ disable() { } avahid_start() { - if [[ -f $NETWORK_INI ]]; then + if check && [[ -n $bind ]]; then # bind avahi service - if check; then - [[ -n $bind ]] && allow $bind || allow br0 - [[ $ipv4 == no ]] && disable ipv4 || enable ipv4 - [[ $ipv6 == no ]] && disable ipv6 || enable ipv6 - fi + [[ -n $bind ]] && allow $bind || allow br0 + [[ $ipv4 == no ]] && disable ipv4 || enable ipv4 + [[ $ipv6 == no ]] && disable ipv6 || enable ipv6 else # default interface with no configuration allow br0