vhf script update
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# Here's a diagram of the stack this creates:
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
# RF signals! _ RF signals!
|
||||
# \ _/
|
||||
# \ /
|
||||
@@ -71,7 +71,7 @@ NRATTACH_CMD="nrattach ${NETROM_PORT_NAME}"
|
||||
# unity gain. These might need to be adjusted depending on what Direwolf says about the audio level
|
||||
# of stations, and how exactly the radio and Digirig get the analog audio from the radio.
|
||||
PULSEAUDIO_TX_DEVICE="alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo"
|
||||
PULSEAUDIO_TX_VOLUME_PERCENT="75%"
|
||||
PULSEAUDIO_TX_VOLUME_PERCENT="100%"
|
||||
PULSEAUDIO_RX_DEVICE="alsa_input.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.mono-fallback"
|
||||
PULSEAUDIO_RX_VOLUME_PERCENT="25%"
|
||||
|
||||
@@ -98,8 +98,8 @@ cleanup_stack()
|
||||
# figure out what the associated callsign for the netrom port is.
|
||||
# Example: digirig-nr K0BIT-8 8BITS 235 NET/ROM Port
|
||||
local NETROM_CALLSIGN=$(grep "^${NETROM_PORT_NAME}" /etc/ax25/nrports | awk '{print $2}')
|
||||
|
||||
# make sure we actually have a corresponding NET/ROM device and callsign in nrports. If not,
|
||||
|
||||
# make sure we actually have a corresponding NET/ROM device and callsign in nrports. If not,
|
||||
# then we can just be done right now.
|
||||
if [ -z "$NETROM_CALLSIGN" ]; then
|
||||
return
|
||||
@@ -110,7 +110,7 @@ cleanup_stack()
|
||||
for IFACE in $(ip link show | grep -oE 'nr[0-9]+'); do
|
||||
# Get the callsign for this interface
|
||||
local IFACE_CALL=$(ip addr show $IFACE | grep 'netrom' | awk '{print $2}')
|
||||
|
||||
|
||||
if [ "$IFACE_CALL" = "$NETROM_CALLSIGN" ]; then
|
||||
echo "Bringing down NET/ROM interface ${IFACE} ..."
|
||||
sudo ip link set $IFACE down
|
||||
@@ -249,7 +249,7 @@ sleep 1
|
||||
|
||||
# Start the AX.25 stack
|
||||
start_stack
|
||||
echo "All processes started. Monitoring via wait..."
|
||||
echo "Monitoring via wait..."
|
||||
|
||||
# 'wait -n' waits for ANY background process to exit.
|
||||
# It returns as soon as Direwolf or Socat dies. Kissattach forks itself so we can't wait on it.
|
||||
|
||||
Reference in New Issue
Block a user