From 6a059448c901340e2ec74984cd6d35f586ddb3b9 Mon Sep 17 00:00:00 2001 From: Superminaren Date: Mon, 8 Dec 2025 11:10:24 +0100 Subject: [PATCH] Fixed permission handling and executable rights --- flash.sh | 0 install.sh | 6 +++--- prepare.sh | 0 3 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 flash.sh mode change 100644 => 100755 install.sh mode change 100644 => 100755 prepare.sh 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