mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
et-aircraft - Added support for detecting the RTL-SDR v2 as a new supported ET device. Enforced presence of SDR device before starting dump1090
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
#!/bin/bash
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 1 February 2025
|
||||
# Updated : 5 June 2025
|
||||
# Updated : 7 June 2025
|
||||
# Purpose : Common environment variables and functions
|
||||
|
||||
# Standardized device paths for supported hardware
|
||||
export ET_DEVICE_AUDIO="/dev/et-audio"
|
||||
export ET_DEVICE_CAT="/dev/et-cat"
|
||||
export ET_DEVICE_GPS="/dev/et-gps"
|
||||
export ET_DEVICE_SDR="/dev/et-sdr"
|
||||
|
||||
export ESC="\x1B"
|
||||
export RED="${ESC}[1;31m"
|
||||
export BLUE="${ESC}[1;34m"
|
||||
@@ -22,3 +28,10 @@ show-err-dialog() {
|
||||
notify-user() {
|
||||
notify-send -t 5000 --app-name="EmComm Tools" "$1"
|
||||
}
|
||||
|
||||
exit-if-no-sdr() {
|
||||
if [[ ! -e ${ET_DEVICE_SDR} ]]; then
|
||||
et-log "No ${ET_DEVICE_SDR} detected."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user