mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 14:58:08 +00:00
arch
is not portable.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
a64211123f
commit
4dcee5cd84
@ -1199,11 +1199,11 @@ FTLdetect() {
|
||||
local machine
|
||||
local binary
|
||||
|
||||
machine=$(arch)
|
||||
machine=$(uname -m)
|
||||
|
||||
if [[ $machine == arm* || $machine == *aarch* ]]; then
|
||||
# ARM
|
||||
local rev=$(arch | sed "s/[^0-9]//g;")
|
||||
local rev=$(uname -m | 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"
|
||||
|
Loading…
Reference in New Issue
Block a user