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 <