Update config add OS detection to config

master-b3
Alan Johnston 1 month ago committed by GitHub
parent ce0e73a74e
commit 8ddaa56f27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save

Powered by TurnKey Linux.