Skip to content

Commit

Permalink
Updated setup script to install UHD 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-baros committed Aug 15, 2022
1 parent 06d7945 commit c3dbda3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions setup_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ main(){
#Only get the Tag release not all changes --depth 1
mkdir -p uhd_GitSource
cd uhd_GitSource
git clone --branch UHD-4.1 https://github.com/EttusResearch/uhd.git
git clone --branch UHD-4.2 https://github.com/EttusResearch/uhd.git
cd uhd
git checkout 25d617cad7db69fa04699df5f93ece06b0a61199
git checkout 321295fba49fb66ede365afbd9ef62971cdfbfca


#Build the UHD driver and install it to system
Expand Down Expand Up @@ -113,14 +113,14 @@ user_input(){
find_UHD_install(){
VAR=$(ldconfig -p | grep "libuhd.so.4")
if [[ $VAR == *"libuhd"* ]]; then
if [[ $VAR == *"libuhd.so.4.1.0"* ]]; then
if [[ $VAR == *"libuhd.so.4.2.0"* ]]; then
return 0
else
echo ""
echo "Warning: You don't have the correct version looking for UHD4.0.0. Instead found"
echo "Warning: You don't have the correct version looking for UHD 4.2.0. Instead found"
echo $VAR

tempText="Would you like to install UHD 4.1.0? "
tempText="Would you like to install UHD 4.2.0? "

if user_input "$tempText"; then
return 1
Expand All @@ -134,7 +134,7 @@ if [[ $VAR == *"libuhd"* ]]; then
fi
fi
else
tempText="Would you like to install UHD 4.1.0?"
tempText="Would you like to install UHD 4.2.0?"
if user_input "$tempText"; then
return 1
else
Expand Down

0 comments on commit c3dbda3

Please sign in to comment.