diff --git a/share/ax25/ax25.default b/share/ax25/ax25.default index df743b7..ff7d146 100644 --- a/share/ax25/ax25.default +++ b/share/ax25/ax25.default @@ -1,10 +1,22 @@ # Configuration for AX.25 systemd unit file from Pat. -# The axport from /etc/ax25/axports to bring up +# The axport from /etc/ax25/axports to bring up. AXPORT=wl2k -# The AX.25 baudrate the TNC is configured for. (Make sure this matches the HBAUD setting of your TNC). +# The AX.25 baudrate the TNC is configured for. +# Make sure this matches the HBAUD setting of your TNC. HBAUD=1200 -# The TNC serial path +# The TNC serial path. DEV=/dev/ttyUSB0 + +# Script for initializing the TNC. +# +# This optional parameter is convenient when dealing with TNCs that require +# additional initialization, e.g. entering KISS mode. Modify to fit your own needs. +# +#TNC_INIT_CMD="/usr/local/bin/my_tnc_init_script --serial-tty $DEV --hbaud $HBAUD" +# +# Example (for Kenwood TH-D7x and TM-D7x0): +# Download, modify, compile and install http://www.trinityos.com/HAM/CentosDigitalModes/usr/src/misc/D710/tmd710_tncsetup.c +#TNC_INIT_CMD="/usr/local/bin/tmd710_tncsetup -B 1 -S $DEV -b $HBAUD" diff --git a/share/bin/axup b/share/bin/axup index 9b2c83f..5e17b90 100755 --- a/share/bin/axup +++ b/share/bin/axup @@ -7,6 +7,10 @@ if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] then echo "Usage: $0 [tty] [axport] [1200/9600]" exit 1; fi + +# Init TNC (optional) +[ -z "$TNC_INIT_CMD" ] || eval "$TNC_INIT_CMD"; + if [ "$3" -eq "9600" ]; then /usr/sbin/kissattach $1 $2 -m 256 /usr/sbin/kissparms -p $2 -t 100 -l 10 -s 12 -r 80 -f n