Update unifi.sh

add AVX instruction set check
This commit is contained in:
tteckster 2024-07-20 06:20:20 -04:00 committed by GitHub
parent cfa1b2e04d
commit 2febf2c39b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@ cat <<"EOF"
EOF EOF
} }
header_info 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..." echo -e "Loading..."
APP="Unifi" APP="Unifi"
var_disk="8" var_disk="8"