allow RPi revision 900032

This commit is contained in:
Aaron Murray 2022-08-18 19:47:35 -05:00
parent 446e8ee2b4
commit 912f52051a

View File

@ -13,7 +13,7 @@
# https://github.com/armbian/config/blob/master/debian-software
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
#
# version: 1.6.19
# version: 1.6.20
#
if [[ $(id -u) -ne 0 ]]; then
@ -194,7 +194,7 @@ if grep -rq raspberrypi.org /etc/apt/*; then
rpivers="$(awk '$1 == "Revision" { print $3 }' /proc/cpuinfo)"
echo "RPi revision code :: ${rpivers}"
# https://elinux.org/RPi_HardwareHistory
if [[ "${rpivers:0:1}" =~ [09] ]] && [[ ! "${rpivers:0:3}" =~ 902 ]]; then
if [[ "${rpivers:0:1}" =~ [09] ]] && [[ ! "${rpivers:0:3}" =~ 902 ]] && [[ ! "${rpivers:4:5}" =~ 32 ]]; then
echo "This RPi1 is not supported (not true armhf). Exiting..."
exit 7
fi