From 7db595259f9644a72447f32c0c9279ae0a3b1a72 Mon Sep 17 00:00:00 2001 From: Chris Frankland-Wright Date: Sat, 30 Aug 2025 22:05:09 +0100 Subject: [PATCH] more network config --- setup.sh | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/setup.sh b/setup.sh index 9523e4c..dbbb3f9 100644 --- a/setup.sh +++ b/setup.sh @@ -154,8 +154,9 @@ if [ "$PKG_MANAGER" == "apt" ]; then sudo rm -rf "$BUILD_DIR" echo "✅ nodogsplash installed successfully." - sudo systemctl unmask hostapd - sudo systemctl enable hostapd + # Disable the standalone hostapd service to let NetworkManager manage it. + sudo systemctl disable hostapd + sudo systemctl mask hostapd sudo systemctl enable nodogsplash else echo "This script is designed for Debian-based systems like Raspberry Pi OS." @@ -189,6 +190,8 @@ fi echo "Creating new '$CON_NAME' connection profile..." sudo nmcli c add type wifi ifname wlan0 con-name "$CON_NAME" autoconnect yes ssid "TimeTurner" sudo nmcli c modify "$CON_NAME" 802-11-wireless.mode ap 802-11-wireless.band bg +sudo nmcli c modify "$CON_NAME" 802-11-wireless-security.key-mgmt wpa-psk +sudo nmcli c modify "$CON_NAME" 802-11-wireless-security.psk "harry-ron-hermione" sudo nmcli c modify "$CON_NAME" ipv4.method manual ipv4.addresses 10.0.252.1/24 # Configure dnsmasq for DHCP @@ -199,26 +202,6 @@ dhcp-range=10.0.252.10,10.0.252.50,255.255.255.0,24h address=/#/10.0.252.1 EOF -# Configure hostapd -echo "Configuring hostapd..." -sudo tee /etc/hostapd/hostapd.conf > /dev/null < /dev/null <