diff --git a/flash.sh b/flash.sh old mode 100644 new mode 100755 diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index 98b465f..f106012 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ PACKAGES_DEBIAN="uhd-host" PACKAGES_RHEL="uhd-tools uhd-devel uhd soapy-uhd" if [[ $EUID -ne 0 ]]; then - echo "Error: This script must be run as root. Exiting." >&2 + echo "Error: This script must be run with sudo as root. Exiting." >&2 exit 1 fi @@ -50,8 +50,8 @@ export UHD_IMAGES_DIR=/usr/lib/ettus/ # Copying Firmware files mkdir /usr/lib/ettus/ # Create the library folder cp -r ./firmware/* /usr/lib/ettus/ # Copy firmware files -chown -R root:root /usr/lib/ettus/ # Ensure root owns the files -chmod 776 -R /usr/lib/ettus/ # This makes only root able to change the folder and file content +chown -R $USER:root /usr/lib/ettus/ # Ensure root owns the files +chmod -R 776 /usr/lib/ettus/ # This makes only root able to change the folder and file content uhd_find_devices # Needs to identify before it flashes uhd_image_loader --download --args type=b200 # Flashes from the directory the file is in. diff --git a/prepare.sh b/prepare.sh old mode 100644 new mode 100755