Update rc.avahidaemon

This commit is contained in:
bergware
2024-12-30 14:16:48 +01:00
parent 4a8d09a2d5
commit 76f0465904

View File

@@ -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(){