Skip to content

Commit

Permalink
try and make the arch logic detection fit the docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen committed Dec 15, 2023
1 parent ddc299b commit b453d7d
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions install_sdrplay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected] 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
Expand All @@ -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
Expand Down

0 comments on commit b453d7d

Please sign in to comment.