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 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-07-09 07:34:56 -06:00
parent 93d9af1480
commit b98ebf2a7f
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -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 \