mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +00:00
Detect library differently
This commit is contained in:
parent
f24f77c5bd
commit
70a6a79b8c
@ -1166,10 +1166,11 @@ FTLdownload() {
|
|||||||
if [[ $machine == arm* || $machine == *aarch* ]]; then
|
if [[ $machine == arm* || $machine == *aarch* ]]; then
|
||||||
# ARM
|
# ARM
|
||||||
local rev=$(uname -m | sed "s/[^0-9]//g;")
|
local rev=$(uname -m | sed "s/[^0-9]//g;")
|
||||||
if [ -f "/lib/ld-linux-aarch64.so.1" ]; then
|
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"
|
echo "::: Detected ARM-aarch64 architecture"
|
||||||
binary="pihole-FTL-aarch64-linux-gnu"
|
binary="pihole-FTL-aarch64-linux-gnu"
|
||||||
elif [ -f "/lib/ld-linux-armhf.so.3" ]; then
|
elif [[ "$lib" == "/lib/ld-linux-armhf.so.3" ]]; then
|
||||||
if [ "$rev" -gt "6" ]; then
|
if [ "$rev" -gt "6" ]; then
|
||||||
echo "::: Detected ARM-hf architecture (armv7+)"
|
echo "::: Detected ARM-hf architecture (armv7+)"
|
||||||
binary="pihole-FTL-arm-linux-gnueabihf"
|
binary="pihole-FTL-arm-linux-gnueabihf"
|
||||||
|
Loading…
Reference in New Issue
Block a user