mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-07 12:37:45 +00:00
* Enable full mDNS resolution for .local domains * Add migration to enable mDNS resolution for existing users
7 lines
339 B
Bash
7 lines
339 B
Bash
echo "Enable mDNS resolution for existing Avahi installations"
|
|
|
|
if systemctl is-enabled avahi-daemon.service >/dev/null 2>&1; then
|
|
if ! grep -q "mdns_minimal" /etc/nsswitch.conf; then
|
|
sudo sed -i 's/^hosts:.*/hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] files myhostname dns/' /etc/nsswitch.conf
|
|
fi
|
|
fi |