Improved architecture test

Update changelog
This commit is contained in:
Serge Schneider
2017-12-01 09:01:38 +00:00
parent 35b44f1615
commit 7529c44d53
2 changed files with 16 additions and 2 deletions

View File

@@ -9,8 +9,12 @@ BLACKLIST=/etc/modprobe.d/raspi-blacklist.conf
CONFIG=/boot/config.txt
is_pi () {
grep -q "^model name\s*:\s*ARMv" /proc/cpuinfo
return $?
ARCH=$(dpkg --print-architecture)
if [ "$ARCH" = "armhf" ] ; then
return 0
else
return 1
fi
}
if is_pi ; then