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

View File

@ -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"