Add variable for current architecture

This commit is contained in:
Taylor Helsper 2022-12-28 22:08:24 -06:00
parent a3b8548fb1
commit 576696c5d5

View File

@ -13,6 +13,7 @@ IS_X86=0
IS_32_BIT=0
IS_64_BIT=0
DEVICE_TYPE="unknown"
DEVICE_ARCH=$(uname -m) # Examples: armv7l aarch64 x86_64
MODEL=$(tr -d '\0' < /proc/device-tree/model) || MODEL="unknown"
DEBIAN_VERSION=$(lsb_release -c -s) || DEBIAN_VERSION="unknown"
uname -a | grep amd64 && IS_X86=1 && IS_64_BIT=1 || true