Change from uname -m to straight arch

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper 2017-02-20 08:13:46 -08:00
parent e480c761cd
commit 339f95b00c
No known key found for this signature in database
GPG key ID: 572E999E385B7BFC
2 changed files with 6 additions and 6 deletions

View file

@ -1161,11 +1161,11 @@ FTLdownload() {
echo ":::"
echo "::: Downloading latest version of FTL..."
local machine=$(uname -m)
local machine=$(arch)
if [[ $machine == arm* || $machine == *aarch* ]]; then
# ARM
local rev=$(uname -m | sed "s/[^0-9]//g;")
local rev=$(arch | sed "s/[^0-9]//g;")
local lib=$(ldd /bin/ls | grep -E '^\s*/lib' | awk '{ print $1 }')
if [[ "$lib" == "/lib/ld-linux-aarch64.so.1" ]]; then
echo "::: Detected ARM-aarch64 architecture"