Update proc.sh

This commit is contained in:
Kroese 2024-02-03 11:59:07 +01:00 committed by GitHub
parent 1ae241040e
commit e5990c4fd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,8 +6,9 @@ set -Eeuo pipefail
: "${KVM:="Y"}" : "${KVM:="Y"}"
: "${CPU_FLAGS:=""}" : "${CPU_FLAGS:=""}"
: "${CPU_MODEL:="host"}" : "${CPU_MODEL:="host"}"
: "${MODEL:="cortex-a53"}"
[[ "$ARCH" != "arm"* ]] && KVM="N" [[ "$ARCH" != "arm64" ]] && KVM="N"
if [[ "$KVM" != [Nn]* ]]; then if [[ "$KVM" != [Nn]* ]]; then
@ -53,10 +54,10 @@ else
if [[ "${CPU_MODEL,,}" == "host"* ]]; then if [[ "${CPU_MODEL,,}" == "host"* ]]; then
if [[ "$ARCH" == "arm"* ]]; then if [[ "$ARCH" == "arm64" ]]; then
CPU_MODEL="max" CPU_MODEL="max"
else else
CPU_MODEL="cortex-a53" CPU_MODEL="$MODEL"
fi fi
fi fi