From bae175c3da9c4e54c609b904c2cec384dc5d019a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 28 Dec 2024 09:56:37 +0100 Subject: [PATCH] Update 01-oldcpu.sh --- birdnet-pi/rootfs/etc/cont-init.d/01-oldcpu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birdnet-pi/rootfs/etc/cont-init.d/01-oldcpu.sh b/birdnet-pi/rootfs/etc/cont-init.d/01-oldcpu.sh index 49664f357..9b1a41cd0 100755 --- a/birdnet-pi/rootfs/etc/cont-init.d/01-oldcpu.sh +++ b/birdnet-pi/rootfs/etc/cont-init.d/01-oldcpu.sh @@ -3,7 +3,7 @@ set -e # Compensate for old cpu without avx2 -if lscpu | grep -q "Flags" && ! lscpu | grep -q "avx2"; then +if [[ "$(uname -m)" = "x86_64" && lscpu | grep -q "Flags" && ! lscpu | grep -q "avx2" ]]; then bashio::log.warning "NON SUPPORTED CPU DETECTED" bashio::log.warning "Your cpu doesn't support avx2, the analyzer service will likely won't work" bashio::log.warning "Trying to install tensorflow instead of tflite_runtime instead"