From 02e61f120727a5859adca54b0dc2a04b629e7567 Mon Sep 17 00:00:00 2001 From: Aaron Murray Date: Wed, 23 Feb 2022 19:13:34 -0600 Subject: [PATCH] improve rpi check --- install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install b/install index 52b89a5..d5eea32 100755 --- a/install +++ b/install @@ -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.11 +# version: 1.6.12 # if [[ $(id -u) -ne 0 ]]; then @@ -185,7 +185,7 @@ fi if grep -rq raspberrypi.org /etc/apt/*; then rpivers="$(awk '$1 == "Revision" { print $3 }' /proc/cpuinfo)" echo "RPi revision code :: ${rpivers}" - if [[ "${rpivers:0:1}" =~ [09] ]]; then + if [[ "${rpivers:0:1}" =~ [09] ]] && [[ ! "${rpivers:0:3}" =~ 902 ]]; then echo "This RPi1 is not supported (not true armhf). Exiting..." exit 7 fi