Fixed permission handling and executable rights
This commit is contained in:
parent
ea148f829d
commit
6a059448c9
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue