2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

50_Signalbot: Installer aarch64 support

git-svn-id: https://svn.fhem.de/fhem/trunk@26540 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Adimarantis 2022-10-15 11:03:04 +00:00
parent 8727c24788
commit 6a68b45802

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
#$Id:$ #$Id:$
SCRIPTVERSION="3.12" SCRIPTVERSION="3.13"
# Author: Adimarantis # Author: Adimarantis
# License: GPL # License: GPL
#Install script for signal-cli #Install script for signal-cli
@ -164,17 +164,21 @@ check_and_compare_file() {
ARCH=`arch` ARCH=`arch`
OSNAME=`uname` OSNAME=`uname`
APT=`which apt` APT=`which apt`
GLIBC=`ldd --version | grep -m1 -o '[0-9]\.[0-9][0-9]' | head -n 1`
if [ $ARCH = "armv7l" ]; then if [ $ARCH = "armv7l" ]; then
ARCH="armhf" ARCH="armhf"
ARCHJ="arm" ARCHJ="arm"
elif [ $ARCH = "x86_64" ]; then elif [ $ARCH = "x86_64" ]; then
ARCH="amd64" ARCH="amd64"
ARCHJ="x64" ARCHJ="x64"
elif [ $ARCH = "aarch64" ]; then
ARCH="aarch64"
ARCHJ="aarch64"
GLIBC="2.28" #experimental
fi fi
GLIBC=`ldd --version | grep -m1 -o '[0-9]\.[0-9][0-9]' | head -n 1`
IDENTSTR=$ARCH-glibc$GLIBC-$LIBRARYVERSION IDENTSTR=$ARCH-glibc$GLIBC-$LIBRARYVERSION
KNOWN=("amd64-glibc2.27-0.11.2" "amd64-glibc2.28-0.11.2" "amd64-glibc2.31-0.11.2" "armhf-glibc2.28-0.11.2" "armhf-glibc2.31-0.11.2") KNOWN=("amd64-glibc2.27-0.11.2" "amd64-glibc2.28-0.11.2" "amd64-glibc2.31-0.11.2" "armhf-glibc2.28-0.11.2" "armhf-glibc2.31-0.11.2" "aarch64-glibc2.28-0.11.2")
GETLIBS=1 GETLIBS=1
if [[ ! " ${KNOWN[*]} " =~ " ${IDENTSTR} " ]]; then if [[ ! " ${KNOWN[*]} " =~ " ${IDENTSTR} " ]]; then