mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Updating rtl-sdr v4 support
This commit is contained in:
@@ -36,6 +36,7 @@ ${font DejaVu Sans Mono:size=11}${color yellow}Radio: ${execpi 10 et-system-info
|
||||
CAT : ${execpi 10 et-system-info et-cat}
|
||||
GPS : ${execpi 10 et-system-info et-gps}
|
||||
Audio: ${execpi 10 et-system-info et-audio}
|
||||
${if_existing /dev/et-sdr}SDR : ${execpi 10 et-system-info et-sdr}${endif}
|
||||
|
||||
${font DejaVu Sans:bold:size=10}${color #8d5133}${alignc}OPERATOR
|
||||
${font DejaVu Sans Mono:size=11}${color yellow}Callsign: ${execpi 10 et-system-info callsign}
|
||||
|
||||
@@ -13,3 +13,5 @@
|
||||
|
||||
KERNEL=="swradio0", \
|
||||
GROUP="dialout", MODE="0660", SYMLINK+="et-sdr"
|
||||
|
||||
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", GROUP="dialout", MODE="0660", SYMLINK+="et-sdr"
|
||||
|
||||
@@ -15,6 +15,7 @@ function usage() {
|
||||
echo " et-gps - Show state of GPS interface"
|
||||
echo " et-time - Show if time is synched via GPS"
|
||||
echo " et-mode - Show current mode"
|
||||
echo " et-sdr - Show state of SDR interface"
|
||||
echo " grid - Current grid square defined by user"
|
||||
echo " ip - System IP address"
|
||||
echo " release - EmComm Tools release"
|
||||
@@ -127,6 +128,15 @@ case $1 in
|
||||
fi
|
||||
|
||||
;;
|
||||
et-sdr)
|
||||
# 1. Check if the symlink was created by the udev rules
|
||||
if [ -e /dev/et-sdr ]; then
|
||||
echo "Connected";
|
||||
else
|
||||
echo "Not connected";
|
||||
fi
|
||||
|
||||
;;
|
||||
et-gps)
|
||||
|
||||
# 1. Check if the symlink was created by the udev rules
|
||||
|
||||
Reference in New Issue
Block a user