diff --git a/install-gr3.9.sh b/install-gr3.9.sh index c252231..70eadd5 100755 --- a/install-gr3.9.sh +++ b/install-gr3.9.sh @@ -63,5 +63,10 @@ echo ====== you must install gnuplot, e.g., manually as follows: echo ====== echo ====== sudo apt-get install gnuplot-x11 echo ====== - - +echo ====== +echo ====== Separately, we suggest you set device and driver permissions: +echo ====== \$ cd scripts +echo ====== \$ ./udev_rules.sh +echo ====== It is only necessary to do this once. Currently this script +echo ====== handles the rtl-sdr and airspy only. +echo ====== diff --git a/install.sh b/install.sh index 10fbeb5..651b8ce 100755 --- a/install.sh +++ b/install.sh @@ -33,3 +33,10 @@ echo ====== you must install gnuplot, e.g., manually as follows: echo ====== echo ====== sudo apt-get install gnuplot-x11 echo ====== +echo ====== +echo ====== Separately, we suggest you set device and driver permissions: +echo ====== \$ cd scripts +echo ====== \$ ./udev_rules.sh +echo ====== It is only necessary to do this once. Currently this script +echo ====== handles the rtl-sdr and airspy only. +echo ====== diff --git a/scripts/blacklist-rtl.conf b/scripts/blacklist-rtl.conf new file mode 100644 index 0000000..f723da3 --- /dev/null +++ b/scripts/blacklist-rtl.conf @@ -0,0 +1,4 @@ +blacklist dvb_usb_rtl28xxu +blacklist rtl2832 +blacklist rtl2830 +blacklist rtl2838 diff --git a/scripts/udev_rules.sh b/scripts/udev_rules.sh new file mode 100755 index 0000000..88eb3fa --- /dev/null +++ b/scripts/udev_rules.sh @@ -0,0 +1,20 @@ +#! /bin/sh + +if [ ! -f $PWD/blacklist-rtl.conf ]; then + echo "error, you must change to the op25/scripts directory prior to running this script" + exit 1 +fi + +# blacklist rtl dtv drivers +if [ ! -f /etc/modprobe.d/blacklist-rtl.conf ]; then + echo ====== installing blacklist-rtl.conf + echo ====== please reboot before running op25 + sudo install -m 0644 ./blacklist-rtl.conf /etc/modprobe.d/ +fi + +# fix borked airspy udev rule to allow used of airspy device when running headless +if [ -f /lib/udev/rules.d/60-libairspy0.rules ]; then + echo ====== fixing libairspy0 udev rule + echo ====== please reboot before running op25 + sudo sed -i 's^TAG+="uaccess"^MODE="660", GROUP="plugdev"^g' /lib/udev/rules.d/60-libairspy0.rules +fi