Compare commits
6 Commits
fix/gravit
...
tweak/32bi
| Author | SHA1 | Date | |
|---|---|---|---|
| 6ee7eca1e5 | |||
| 396f85614d | |||
| c95094a6d3 | |||
| 0159461cc0 | |||
|
|
95021fce58 | ||
|
|
082d74eeb1 |
@@ -1963,9 +1963,18 @@ get_binary_name() {
|
||||
|
||||
# If the machine is aarch64 (armv8)
|
||||
if [[ "${machine}" == "aarch64" ]]; then
|
||||
# If AArch64 is found (e.g., BCM2711 in Raspberry Pi 4)
|
||||
printf "%b %b Detected AArch64 (64 Bit ARM) architecture\\n" "${OVER}" "${TICK}"
|
||||
l_binary="pihole-FTL-arm64"
|
||||
if [[ "$(getconf LONG_BIT)" == "64" ]]; then
|
||||
# If the OS is 64 bit, we use the arm64 binary
|
||||
printf "%b %b Detected AArch64 (64 Bit ARM) architecture\\n" "${OVER}" "${TICK}"
|
||||
l_binary="pihole-FTL-arm64"
|
||||
else
|
||||
# If the OS is 32 bit, we use the armv7 binary (aarch64 is actually armv8)
|
||||
# Even though the machine is 64 bit capable, this makes debugging
|
||||
# very hard as 32bit tools like gdb, etc. cannot analyze the 64 bit
|
||||
# binary. See FTL issue #2494 for such an example.
|
||||
printf "%b %b Detected AArch64 (64 Bit ARM) architecture with 32 bit OS\\n" "${OVER}" "${TICK}"
|
||||
l_binary="pihole-FTL-armv7"
|
||||
fi
|
||||
elif [[ "${machine}" == "arm"* ]]; then
|
||||
# ARM 32 bit
|
||||
# Get supported processor from other binaries installed on the system
|
||||
|
||||
@@ -822,6 +822,10 @@ gravity_DownloadBlocklistFromUrl() {
|
||||
fix_owner_permissions "${saveLocation}"
|
||||
# Compare lists if they are identical
|
||||
compareLists "${adlistID}" "${saveLocation}"
|
||||
# Set permissions for the *.etag file
|
||||
if [[ -f "${saveLocation}.etag" ]]; then
|
||||
fix_owner_permissions "${saveLocation}.etag"
|
||||
fi
|
||||
# Add domains to database table file
|
||||
pihole-FTL "${gravity_type}" parseList "${saveLocation}" "${gravityTEMPfile}" "${adlistID}"
|
||||
done="true"
|
||||
|
||||
Reference in New Issue
Block a user