From 320174fe53edec87b0b09888640c81d02751b6a3 Mon Sep 17 00:00:00 2001 From: Chris Frankland-Wright Date: Sat, 30 Aug 2025 23:54:12 +0100 Subject: [PATCH] final attempt for the night --- setup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index ca62644..efa9262 100644 --- a/setup.sh +++ b/setup.sh @@ -291,7 +291,12 @@ sudo systemctl reload NetworkManager echo "Configuring static IP for wlan0 via dhcpcd..." # Ensure dhcpcd is installed sudo apt install -y dhcpcd5 -# Add our static IP config, being careful not to overwrite existing settings + +# First, remove any existing configurations for wlan0 to prevent conflicts. +# This is a more robust way to ensure our settings are applied. +sudo sed -i '/^interface wlan0/,/^\s*$/d' /etc/dhcpcd.conf + +# Now, add our static IP config to the end of the file. sudo tee -a /etc/dhcpcd.conf > /dev/null <