mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Removes [!UNAVAIL=return] from nsswitch.conf configuration to resolve Tailscale split DNS issues while maintaining mDNS printer discovery. - Updated printer setup script - Updated existing Avahi migration - Added migration for existing users Addresses: https://github.com/basecamp/omarchy/pull/1021#issuecomment-3318650490
7 lines
321 B
Bash
7 lines
321 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 files myhostname dns/' /etc/nsswitch.conf
|
|
fi
|
|
fi |