install.sh installs on Debian 13

install.sh only accepted Debian 12, which cannot run this version, and
rejected Debian 13.  It now requires Debian 13 or newer on both PCs and
Raspberry Pis.  The install scripts point to the drive wizard instead of
manual mounting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-10-13 19:30:32 -06:00
parent 7aa7481a56
commit 00b86f69d4
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
5 changed files with 30 additions and 32 deletions

View file

@ -43,10 +43,13 @@ rpi=false
rpi4=false
rpi5=false
debian12=false
debian13=false
grep -q 'Raspberry Pi' /proc/cpuinfo >/dev/null && rpi=true
grep -q 'Raspberry Pi 4' /proc/cpuinfo >/dev/null && rpi4=true
grep -q 'Raspberry Pi 5' /proc/cpuinfo >/dev/null && rpi5=true
grep -q 'PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"' /etc/os-release >/dev/null && debian12=true
os_version=$(awk -F= '$1=="VERSION_ID"{gsub(/"/,"",$2);print $2}' /etc/os-release 2>/dev/null)
[[ ${os_version} =~ ^[0-9]+$ && ${os_version} -ge 13 ]] && debian13=true
if [[ ${rpi4} == true ]]; then
echo 'OK: Running on Raspberry Pi 4'
@ -54,8 +57,10 @@ elif [[ ${rpi5} == true ]]; then
echo 'OK: Running on Raspberry Pi 5'
elif [[ ${rpi} == true ]]; then
echo 'OK: Running on unknown Raspberry Pi'
elif [[ ${debian13} == true ]]; then
echo "OK: Running on Debian ${os_version}"
elif [[ ${debian12} == true ]]; then
echo 'OK: Running on Debian 12'
echo 'FAILED: Debian 12 is not supported by new versions of WROLPi. Reinstall on Debian 13.'
else
echo "FAILED: Running on unknown operating system"
fi