mirror of
https://github.com/mynodebtc/mynode.git
synced 2025-01-11 11:29:27 +00:00
Add variable for 64bit
This commit is contained in:
parent
159d2fa346
commit
c1ef7a561d
|
@ -9,15 +9,18 @@ IS_RASPI3=0
|
|||
IS_RASPI4=0
|
||||
IS_RASPI4_ARM64=0
|
||||
IS_X86=0
|
||||
IS_64_BIT=0
|
||||
DEVICE_TYPE="unknown"
|
||||
MODEL=$(tr -d '\0' < /proc/device-tree/model) || MODEL="unknown"
|
||||
uname -a | grep amd64 && IS_X86=1 || true
|
||||
if [[ $MODEL == *"Rock64"* ]]; then
|
||||
IS_ARMBIAN=1
|
||||
IS_ROCK64=1
|
||||
IS_64_BIT=1
|
||||
elif [[ $MODEL == *"RockPro64"* ]]; then
|
||||
IS_ARMBIAN=1
|
||||
IS_ROCKPRO64=1
|
||||
IS_64_BIT=1
|
||||
elif [[ $MODEL == *"Raspberry Pi 3"* ]]; then
|
||||
IS_RASPI=1
|
||||
IS_RASPI3=1
|
||||
|
@ -27,6 +30,7 @@ elif [[ $MODEL == *"Raspberry Pi 4"* ]]; then
|
|||
UNAME=$(uname -a)
|
||||
if [[ $UNAME == *"aarch64"* ]]; then
|
||||
IS_RASPI4_ARM64=1
|
||||
IS_64_BIT=1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user