Small fixes
This commit is contained in:
parent
b662ab63f7
commit
e6dea7a806
10
install.sh
10
install.sh
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
# Names of packages under different distros
|
||||
PACKAGES_DEBIAN="uhd-host libuhd* uhd-soapysdr"
|
||||
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
|
||||
|
@ -39,19 +39,19 @@ case "$DISTRO_ID" in
|
|||
;;
|
||||
esac
|
||||
|
||||
exit 1
|
||||
|
||||
# Ensuring Environment variables
|
||||
#export UHD_IMAGES_DIR=/usr/lib/ettus/ # User specific alternative
|
||||
echo "UHD_IMAGES_DIR=/usr/lib/ettus/" >> /etc/environment # Ensure env across multiple installs on multiple users.
|
||||
echo "UHD_IMAGES_DIR=/usr/lib/ettus/" >> ~/.bashrc
|
||||
source /etc/environment
|
||||
|
||||
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 -r 776 /usr/lib/ettus/ # This makes only root able to change the folder and file content
|
||||
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
|
||||
|
||||
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