From b98ebf2a7f4cd3535ea42da173eca0f747502003 Mon Sep 17 00:00:00 2001 From: Roland Date: Thu, 9 Jul 2026 07:34:56 -0600 Subject: [PATCH] Hotspot: guard on all three binaries so iw/rfkill install independently. On systems that already have dnsmasq (e.g. Ubuntu-style installs), the previous guard skipped the whole block, silently leaving iw and rfkill uninstalled. apt-get is a no-op for packages already present, so one combined install stays idempotent. Co-Authored-By: Claude Fable 5 --- scripts/upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index db79a8cd..02ee22e2 100755 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh @@ -166,7 +166,7 @@ fi # Install dnsmasq-base if not already installed (NetworkManager needs it for the hotspot's # DHCP; it is only a Recommends of network-manager, so ISOs built with --apt-recommends # false shipped without it). iw and rfkill are WiFi diagnostic tools. -if ! command -v dnsmasq &>/dev/null; then +if ! command -v dnsmasq &>/dev/null || ! command -v iw &>/dev/null || ! command -v rfkill &>/dev/null; then echo "Installing dnsmasq-base, iw, rfkill..." apt-get update DEBIAN_FRONTEND=noninteractive apt-get install -y \