Skip to content

Commit

Permalink
Added check-install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lk-iqt committed Mar 20, 2024
1 parent dd88909 commit 433772c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
43 changes: 43 additions & 0 deletions bin/check-install.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions bin/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 433772c

Please sign in to comment.