udev and blacklist rules for airspy and rtl

master
Max 2 months ago
parent 245ff05489
commit de370340cf
  1. 9
      install-gr3.9.sh
  2. 7
      install.sh
  3. 4
      scripts/blacklist-rtl.conf
  4. 20
      scripts/udev_rules.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 ======

@ -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 ======

@ -0,0 +1,4 @@
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
blacklist rtl2838

@ -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
Loading…
Cancel
Save