mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
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:
parent
93d9af1480
commit
b98ebf2a7f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue