From b453d7d09f8ebb694186cf7c999e9fef48d2794c Mon Sep 17 00:00:00 2001 From: Fred Clausen <43556888+fredclausen@users.noreply.github.com> Date: Thu, 14 Dec 2023 21:28:24 -0700 Subject: [PATCH] try and make the arch logic detection fit the docker build --- install_sdrplay.sh | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/install_sdrplay.sh b/install_sdrplay.sh index cb61828..acd2548 100755 --- a/install_sdrplay.sh +++ b/install_sdrplay.sh @@ -20,18 +20,6 @@ fi echo "Architecture: ${ARCH}" echo "API Version: ${VERS}" -if [ "${ARCH}" != "x86_64" ]; then - if [ "${ARCH}" != "i386" ]; then - if [ "${ARCH}" != "i686" ]; then - if [ "${ARCH}" != "Alpine64" ]; then - echo "The architecture on this device (${ARCH}) is not currently supported." - echo "Please contact software@sdrplay.com for details on platform support." - exit 1 - fi - fi - fi -fi - # if arch is arm, armhf , set URL to ARM version # if arch is x86_64, set URL to x86_64 version # if arch is aarch64, set URL to aarch64 version @@ -40,14 +28,14 @@ fi # https://www.sdrplay.com/software/SDRplay_RSP_API-ARM64-3.07.1.run # https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.07.1.run -if [ "${ARCH}" == "arm" ]; then - URL="https://www.sdrplay.com/software/SDRplay_RSP_API-ARM32-3.07.2.run" -elif [ "${ARCH}" == "armhf" ]; then +if [ "${ARCH}" == "armv7l" ]; then URL="https://www.sdrplay.com/software/SDRplay_RSP_API-ARM32-3.07.2.run" elif [ "${ARCH}" == "x86_64" ]; then URL="https://www.sdrplay.com/software/SDRplay_RSP_API-Linux-3.07.1.run" elif [ "${ARCH}" == "aarch64" ]; then URL="https://www.sdrplay.com/software/SDRplay_RSP_API-ARM64-3.07.1.run" +elif [ "${ARCH}" == "arm64" ]; then + URL="https://www.sdrplay.com/software/SDRplay_RSP_API-ARM64-3.07.1.run" else echo "ERROR: Unsupported architecture!" exit 1