From aed57c401b9014ade761e5ca362a1c51caf11b2c Mon Sep 17 00:00:00 2001 From: Enfield <129558375+Enfield01@users.noreply.github.com> Date: Mon, 19 Jan 2026 23:24:57 -0800 Subject: [PATCH] update to conform to bookworm update directory for files to be edited by script to conform to bookworm, as bullseye is deprecated --- script/prepare-pi.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/prepare-pi.sh b/script/prepare-pi.sh index 4f6d0ac..e0c8a35 100644 --- a/script/prepare-pi.sh +++ b/script/prepare-pi.sh @@ -5,10 +5,10 @@ sudo apt-get update sudo apt-get upgrade -y sudo apt-get install -y git stm32flash gcc-arm-none-eabi gcc g++ make build-essential libasio-dev libncurses-dev libssl-dev -# Removing a console configuration from /boot/cmdline.txt -sudo sed -i 's/console=serial0,115200 //g' /boot/cmdline.txt +# Removing a console configuration from /boot/firmware/cmdline.txt +sudo sed -i 's/console=serial0,115200 //g' /boot/firmware/cmdline.txt -# Determining the model of Raspberry Pi to adjust /boot/config.txt accordingly +# Determining the model of Raspberry Pi to adjust /boot/firmware/config.txt accordingly model=$(tr -d '\0' < /proc/device-tree/model) overlay="dtoverlay=disable-bt" if echo "$model" | grep -q "Raspberry Pi 3"; then @@ -16,7 +16,7 @@ if echo "$model" | grep -q "Raspberry Pi 3"; then fi # Adding the correct overlay to /boot/config.txt -echo "$overlay" | sudo tee -a /boot/config.txt +echo "$overlay" | sudo tee -a /boot/firmware/config.txt # Prompt user to select device type read -p "Install for hotspots (h) or repeater boards (r)? " choice < /dev/tty