From 8ddaa56f276cc6c14e34d728d5f86c94661561b0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 19 Aug 2026 08:59:32 -0400 Subject: [PATCH] Update config add OS detection to config --- config | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config b/config index 5d782b09..ee15e394 100755 --- a/config +++ b/config @@ -426,6 +426,16 @@ TXPL=${11} rtl=0 fi +#if [[ $(grep '11.' /etc/debian_version) ]]; then +if [[ $(grep 'bullseye' /etc/os-release) ]]; then + echo "Pi OS is Bullseye (Debian 11)" +elif [[ $(grep 'bookworm' /etc/os-release) ]]; then + echo "Pi OS is Bookworm (Debian 12)" +elif [[ $(grep 'trixie' /etc/os-release) ]]; then + echo "Pi OS is Trixie (Debian 13)" +fi + + echo echo -e "Current sim.cfg configuration file:" # echo