diff --git a/bin/check-install.sh b/bin/check-install.sh new file mode 100755 index 00000000..102b7418 --- /dev/null +++ b/bin/check-install.sh @@ -0,0 +1,43 @@ +#! /usr/bin/env bash + +# Script to check GamutRF install + +#Check Docker +if [ -x "$(command -v docker)" ]; then + echo "Docker install...PASS" +else + echo "Docker install...FAIL" + echo "ERROR: Please check your installation of docker" +fi + +#Check UHD Driver +if [ -x "$(command -v uhd_find_devices)" ]; then + echo "UHD install...PASS" +else + echo "ERROR: UHD install...FAIL" + echo "ERROR: Please check your installation of uhd_host" +fi + +#Check for SDR +if uhd_find_devices >&/dev/null; then + echo "Ettus SDR found...PASS" +else + echo "ERROR: Ettus SDR found...FAIL" + echo "ERROR: Please check your B200 is plugged in" +fi + +#Check Folders +if [ -d /flash/gamutrf ]; then + echo "Flash directory install...PASS" +else + echo "WARNING: Flash directory install...FAIL" + echo "WARNING: Please check your directory structure" +fi + +#Check GamutRF containters +if docker images | grep 'iqtlabs/gamutRF'; then + echo "GamutRF containers install...PASS" +else + echo "WARNING: GamutRF containers install...FAIL" + echo "WARNING: Please pull the GamutRF containers. Run ./bin/update.sh" +fi \ No newline at end of file diff --git a/bin/install-deps.sh b/bin/install-deps.sh index ea951ff2..ad37661a 100644 --- a/bin/install-deps.sh +++ b/bin/install-deps.sh @@ -22,4 +22,5 @@ if [[ $PWD != *"gamutRF"* ]]; then git clone https://github.com/IQTLabs/gamutRF git clone https://github.com/IQTLabs/BirdsEye fi + sudo mkdir -p /flash/gamutrf