mirror of
https://github.com/unraid/webgui.git
synced 2026-01-04 16:40:21 -06:00
Update rc.avahidaemon
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user