From 2febf2c39bbdca74507a864b632908f4c14a8265 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 20 Jul 2024 06:20:20 -0400 Subject: [PATCH] Update unifi.sh add AVX instruction set check --- ct/unifi.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ct/unifi.sh b/ct/unifi.sh index 820930c0..cec984c5 100644 --- a/ct/unifi.sh +++ b/ct/unifi.sh @@ -17,6 +17,10 @@ cat <<"EOF" EOF } header_info +if ! grep -q -m1 'avx[^ ]*' /proc/cpuinfo; then + echo "AVX instruction set is not supported on this CPU." + exit +fi echo -e "Loading..." APP="Unifi" var_disk="8"