From 6b0ca7b4ee68fcd8f8ddf01814aabc3dca2c370f Mon Sep 17 00:00:00 2001 From: Enfield <129558375+Enfield01@users.noreply.github.com> Date: Mon, 2 Feb 2026 21:16:26 -0800 Subject: [PATCH] Update prepare-pi.sh Update script to match manual steps --- script/prepare-pi.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/script/prepare-pi.sh b/script/prepare-pi.sh index 4f6d0ac..d0d4b98 100644 --- a/script/prepare-pi.sh +++ b/script/prepare-pi.sh @@ -3,10 +3,10 @@ # Updating and installing utilities 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 +sudo apt-get install -y git stm32flash gcc-arm-none-eabi gcc g++ make cmake 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 +sudo sed -i 's/console=serial0,115200 //g' /boot/firmware/cmdline.txt # Determining the model of Raspberry Pi to adjust /boot/config.txt accordingly model=$(tr -d '\0' < /proc/device-tree/model) @@ -16,16 +16,18 @@ 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 if [ "$choice" = "h" ]; then sudo mkdir -p /opt/centrunk + sudo mkdir -p /var/logs/centrunk cd /opt/centrunk sudo git clone --recurse-submodules https://github.com/DVMProject/dvmfirmware-hs.git elif [ "$choice" = "r" ]; then sudo mkdir -p /opt/centrunk + sudo mkdir -p /var/logs/centrunk cd /opt/centrunk sudo git clone --recurse-submodules https://github.com/DVMProject/dvmfirmware.git else @@ -37,6 +39,11 @@ fi sudo systemctl disable hciuart.service sudo systemctl disable bluealsa.service sudo systemctl disable bluetooth.service +sudo systemctl disable serial-getty@ttyAMA0.service +sudo systemctl mask serial-getty@ttyAMA0.service +sudo systemctl mask hciuart.service +sudo systemctl mask bluealsa.service +sudo systemctl mask bluetooth.service # Rebooting echo "The system will now reboot."