From 76f0465904bed4fca507c36daaf5f85f9f14dcbc Mon Sep 17 00:00:00 2001 From: bergware Date: Mon, 30 Dec 2024 14:16:48 +0100 Subject: [PATCH] Update rc.avahidaemon --- etc/rc.d/rc.avahidaemon | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/rc.d/rc.avahidaemon b/etc/rc.d/rc.avahidaemon index 486298534..acdd434f1 100755 --- a/etc/rc.d/rc.avahidaemon +++ b/etc/rc.d/rc.avahidaemon @@ -56,6 +56,7 @@ add_local_to_hosts(){ local OLD="^127\.0\.0\.1.*" local NEW="127.0.0.1 $NAME $NAME.local localhost" sed -i "s/$OLD/$NEW/gm;t" $HOSTS + return 0 } # when stopping avahidaemon, remove name.local from the hosts file @@ -63,6 +64,7 @@ remove_local_from_hosts(){ local OLD="^127\.0\.0\.1.*" local NEW="127.0.0.1 $NAME localhost" sed -i "s/$OLD/$NEW/gm;t" $HOSTS + return 0 } avahid_running(){