summaryrefslogtreecommitdiff
path: root/archsetup
diff options
context:
space:
mode:
Diffstat (limited to 'archsetup')
-rwxr-xr-xarchsetup10
1 files changed, 7 insertions, 3 deletions
diff --git a/archsetup b/archsetup
index 5f6e9ba..d87edcc 100755
--- a/archsetup
+++ b/archsetup
@@ -849,11 +849,15 @@ EOF
display "subtitle" "Network Service Discovery"
pacman_install nss-mdns # GNU Name Service Switch host name resolution
- pacman_install avahi # service discovery on a local network using mdns
- action="enabling avahi for mDNS discovery" && display "task" "$action"
# Note: systemd-resolved handles DNS (with DoT), avahi handles mDNS (.local)
- systemctl enable avahi-daemon.service >> "$logfile" 2>&1 || error "error" "$action" "$?"
+ if systemctl is-active --quiet avahi-daemon.service; then
+ display "task" "skipping avahi (already running)"
+ else
+ pacman_install avahi # service discovery on a local network using mdns
+ action="enabling avahi for mDNS discovery" && display "task" "$action"
+ systemctl enable avahi-daemon.service >> "$logfile" 2>&1 || error "error" "$action" "$?"
+ fi
pacman_install geoclue # geolocation service for location-aware apps
action="enabling geoclue geolocation service" && display "task" "$action"