mirror of https://github.com/drowe67/librtlsdr.git
added helper script and smalle note in README for blacklisting
Signed-off-by: hayati ayguen <h_ayguen@web.de>development
parent
859ced26b3
commit
145144bd86
|
@ -19,6 +19,8 @@ https://osmocom.org/projects/rtl-sdr/wiki
|
||||||
thus can be used without blacklisting dvb_usb_rtl28xxu below /etc/modprobe.d/
|
thus can be used without blacklisting dvb_usb_rtl28xxu below /etc/modprobe.d/
|
||||||
- this allows to use a second RTL dongle for use with DVB in parallel
|
- this allows to use a second RTL dongle for use with DVB in parallel
|
||||||
- the IDs can be programmed with 'rtl_eeprom -n' or 'rtl_eeprom -g realtek_sdr'
|
- the IDs can be programmed with 'rtl_eeprom -n' or 'rtl_eeprom -g realtek_sdr'
|
||||||
|
- for permanent blacklisting you might check/call following from the clone git directory
|
||||||
|
* ./install-blacklist.sh
|
||||||
|
|
||||||
|
|
||||||
# Contributing
|
# Contributing
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
BLACKLIST_FN=""
|
||||||
|
if [ -f /etc/modprobe.d/rtlsdr-blacklist.conf ]; then
|
||||||
|
BLACKLIST_FN="rtlsdr-blacklist.conf"
|
||||||
|
echo "found /etc/modprobe.d/${BLACKLIST_FN}"
|
||||||
|
elif [ -f /etc/modprobe.d/blacklist-rtl8xxxu.conf ]; then
|
||||||
|
BLACKLIST_FN="blacklist-rtl8xxxu.conf"
|
||||||
|
echo "found /etc/modprobe.d/${BLACKLIST_FN}"
|
||||||
|
elif [ -f /etc/modprobe.d/raspi-blacklist.conf ]; then
|
||||||
|
BLACKLIST_FN="raspi-blacklist.conf"
|
||||||
|
echo "found /etc/modprobe.d/${BLACKLIST_FN}"
|
||||||
|
else
|
||||||
|
BLACKLIST_FN="rtlsdr-blacklist.conf"
|
||||||
|
echo "could not find existing blacklist. will use /etc/modprobe.d/${BLACKLIST_FN}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f /etc/modprobe.d/${BLACKLIST_FN} ]; then
|
||||||
|
cat /etc/modprobe.d/${BLACKLIST_FN} rtlsdr-blacklist.conf | sort | uniq >/dev/shm/${BLACKLIST_FN}
|
||||||
|
cp /dev/shm/${BLACKLIST_FN} /etc/modprobe.d/${BLACKLIST_FN}
|
||||||
|
echo "updated /etc/modprobe.d/${BLACKLIST_FN} ; reboot to apply"
|
||||||
|
else
|
||||||
|
cp rtlsdr-blacklist.conf /etc/modprobe.d/${BLACKLIST_FN}
|
||||||
|
echo "created /etc/modprobe.d/${BLACKLIST_FN} ; reboot to apply"
|
||||||
|
fi
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
blacklist dvb_usb_rtl28xxu
|
||||||
|
blacklist dvb_usb_v2
|
||||||
|
blacklist rtl_2830
|
||||||
|
blacklist rtl_2832
|
||||||
|
blacklist r820t
|
||||||
|
blacklist rtl8xxxu
|
Loading…
Reference in New Issue