Fix for all other OS versions

Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
Raphael Defosseux
2019-02-13 10:04:40 +01:00
parent b7cbb43130
commit d035be0dd3
+11 -2
View File
@@ -312,9 +312,18 @@ install_usrp_uhd_driver() {
$SUDO apt-get -y install uhd-host
fi
if [ -z $1 ]; then
$SUDO /usr/local/bin/uhd_images_downloader
# quick workaround
if [[ "$OS_DISTRO" == "rhel7.6" ]]; then
$SUDO /usr/local/bin/uhd_images_downloader
else
$SUDO uhd_images_downloader
fi
else
$SUDO /usr/local/bin/uhd_images_downloader -i $1
if [[ "$OS_DISTRO" == "rhel7.6" ]]; then
$SUDO /usr/local/bin/uhd_images_downloader -i $1
else
$SUDO uhd_images_downloader -i $1
fi
fi
}