From fea25f17dd647fb29198bd6ae5d7423289f71340 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 1 Sep 2026 12:54:27 -0400 Subject: [PATCH] Update config -V checks for PiOS version --- config | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config b/config index aea658f3..be2dbfdc 100755 --- a/config +++ b/config @@ -2237,7 +2237,16 @@ elif [ "$1" = "-V" ]; then echo "Changing the maxcpus setting" echo - CMDLINE=/boot/firmware/cmdline.txt + if [[ $(grep 'bullseye' /etc/os-release) ]]; then + echo "Pi OS is Bullseye (Debian 11)" + CMDLINE=/boot/cmdline.txt + elif [[ $(grep 'bookworm' /etc/os-release) ]]; then + echo "Pi OS is Bookworm (Debian 12)" + CMDLINE=/boot/firmware/cmdline.txt + else [[ $(grep 'trixie' /etc/os-release) ]]; then + echo "Pi OS is Trixie (Debian 13) or later" + CMDLINE=/boot/firmware/cmdline.txt + fi CPUS=$(cat $CMDLINE| grep -oP 'maxcpus=\K\d+')