mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 10:12:06 +01:00
bootstrap: identify and log CPU architecture
This commit is contained in:
parent
73910e9a46
commit
882caaa83f
@ -518,6 +518,23 @@ else
|
||||
sudo chown admin:admin /mnt/hdd/app-data/subscriptions
|
||||
fi
|
||||
|
||||
################################
|
||||
# IDENTIFY CPU ARCHITECTURE
|
||||
################################
|
||||
|
||||
cpu="?"
|
||||
isARM=$(uname -m | grep -c 'arm')
|
||||
isAARCH64=$(uname -m | grep -c 'aarch64')
|
||||
isX86_64=$(uname -m | grep -c 'x86_64')
|
||||
if [ ${isARM} -gt 0 ]; then
|
||||
cpu="arm"
|
||||
elif [ ${isAARCH64} -gt 0 ]; then
|
||||
cpu="aarch64"
|
||||
elif [ ${isX86_64} -gt 0 ]; then
|
||||
cpu="x86_64"
|
||||
fi
|
||||
echo "cpu=${cpu}" >> $infoFile
|
||||
|
||||
################################
|
||||
# IDENTIFY BASEIMAGE
|
||||
################################
|
||||
|
Loading…
Reference in New Issue
Block a user