From 04165f26867dd633505938843bf3198c87e33b94 Mon Sep 17 00:00:00 2001 From: Chris Frankland-Wright Date: Sun, 31 Aug 2025 00:19:24 +0100 Subject: [PATCH] last chance saloon! --- setup.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 288346c..87f51c8 100644 --- a/setup.sh +++ b/setup.sh @@ -12,6 +12,9 @@ if [ -f "${INSTALL_DIR}/timeturner" ]; then case "$choice" in r|R ) echo "Proceeding with full re-installation..." + # Stop the service to allow overwriting the binary, ignore errors if not running + echo "Stopping existing TimeTurner service..." + sudo systemctl stop timeturner.service || true # The script will continue to the installation steps below. ;; a|A ) @@ -277,6 +280,10 @@ sudo systemctl stop dnsmasq || true # --- Configure networking for AP mode --- +# Set the WiFi country code to prevent radio issues. This is a critical step. +echo "Setting WiFi Country Code to US..." +sudo raspi-config nonint do_wifi_country US + # Tell NetworkManager to ignore wlan0 completely to prevent conflicts. echo "Configuring NetworkManager to ignore wlan0..." sudo tee /etc/NetworkManager/conf.d/99-unmanaged-wlan0.conf > /dev/null <