Install paclink-unix
- Configure a single MTA
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
plu:example_config_files:systemd [2018/11/23 12:58] gunn [Files in /etc/ax25] |
plu:example_config_files:systemd [2018/11/23 15:41] gunn [Files in /etc/ax25] |
||
---|---|---|---|
Line 127: | Line 127: | ||
CHANNEL 1 | CHANNEL 1 | ||
- | PTT GPIO 12 | + | PTT GPIO 23 |
MODEM 1200 | MODEM 1200 | ||
MYCALL N7NIX-2 | MYCALL N7NIX-2 | ||
Line 208: | Line 208: | ||
firmware_vendorfile="/sys/firmware/devicetree/base/hat/vendor" | firmware_vendorfile="/sys/firmware/devicetree/base/hat/vendor" | ||
- | PROD_ID_NAMES=("INVALID" "INVALID" "UDRC" "UDRC II" "1WSpot") | + | PROD_ID_NAMES=("INVALID" "INVALID" "UDRC" "UDRC II" "DRAWS" "1WSpot") |
NWDIG_VENDOR_NAME="NW Digital Radio" | NWDIG_VENDOR_NAME="NW Digital Radio" | ||
Line 316: | Line 316: | ||
/etc/ax25/ax25dev-parms ax0 | /etc/ax25/ax25dev-parms ax0 | ||
;; | ;; | ||
- | 3) | + | 3|4) |
- | echo "UDRC II installed" | + | echo "UDRC II or DRAWS installed" |
# use port 2 with mkiss | # use port 2 with mkiss | ||
pseudoterm=$($SBINDIR/mkiss $SERIALPORT_DIREWOLF /dev/ptmx /dev/ptmx | tail -1) | pseudoterm=$($SBINDIR/mkiss $SERIALPORT_DIREWOLF /dev/ptmx /dev/ptmx | tail -1) | ||
Line 333: | Line 333: | ||
echo " Port ${PORTNAME_2} attached to ax1" | echo " Port ${PORTNAME_2} attached to ax1" | ||
;; | ;; | ||
- | 4) | + | 5) |
echo "One Watt Spot installed" | echo "One Watt Spot installed" | ||
# use port 1 with mkiss | # use port 1 with mkiss | ||
Line 357: | Line 357: | ||
echo "ax25-upd script finished" | echo "ax25-upd script finished" | ||
exit 0 | exit 0 | ||
+ | </file> | ||
+ | === ax25-downd === | ||
+ | <file> | ||
+ | #!/bin/bash | ||
+ | # | ||
+ | SBINPATH="/usr/local/sbin" | ||
+ | |||
+ | echo "ax25-downd start" | ||
+ | # Stop FPAC | ||
+ | # /usr/local/sbin/myfpac.sh stop | ||
+ | |||
+ | # Stop Ax25 support | ||
+ | # for PROC_NAME in beacon ax25d ax25ipd ax25rtd mheardd listen saxIgate | ||
+ | for PROC_NAME in beacon ax25d ax25ipd ax25rtd mheardd saxIgate | ||
+ | do | ||
+ | PID=`/bin/pidof -x $PROC_NAME` | ||
+ | if [ -n "$PID" ]; then | ||
+ | kill -TERM $PID > /dev/null | ||
+ | echo "$PROC_NAME - $PID " | ||
+ | sleep 1 | ||
+ | fi | ||
+ | done | ||
+ | |||
+ | # If netromd is running | ||
+ | pidof netromd > /dev/null | ||
+ | if [ $? -eq 0 ]; then | ||
+ | |||
+ | # Save NetRom routes | ||
+ | $SBINPATH/nodesave -p $SBINPATH /var/ax25/nrsave && echo "N/R routes saved" | ||
+ | |||
+ | # Stop NetRom | ||
+ | killall netromd > /dev/null | ||
+ | echo "Netrom Stopped" | ||
+ | else | ||
+ | echo "Netrom daemon not running" | ||
+ | fi | ||
+ | |||
+ | # Close sockets | ||
+ | echo "Detach Ax/Nr/Sp Devices" | ||
+ | |||
+ | ifconfig|grep AMPR > /tmp/ax25-config.tmp | ||
+ | |||
+ | i=0 | ||
+ | iface=$(awk ' NR == '1' { print $1 }' /tmp/ax25-config.tmp) | ||
+ | |||
+ | while [ "$iface" != "" ] ; do | ||
+ | let i=i+1 | ||
+ | iface=$(awk ' NR == '$i' { print $1 }' /tmp/ax25-config.tmp) | ||
+ | if [ "$iface" != "" ] && [ "${iface:0:2}" == "nr" ] ; then | ||
+ | # echo "select: $iface, iface: ${iface:0:2}" | ||
+ | ifconfig "$iface" down | ||
+ | echo " $iface down" | ||
+ | fi | ||
+ | done | ||
+ | |||
+ | # Stop Kissattach | ||
+ | killall -KILL kissattach > /dev/null | ||
+ | # Empty Heard List | ||
+ | #cat /dev/null > /var/ax25/mheard/mheard.dat | ||
+ | |||
+ | # End of ax25-down | ||
+ | echo "ax25-downd finished" | ||
+ | exit 0 | ||
+ | </file> | ||
+ | === axports === | ||
+ | <file> | ||
+ | # /usr/local/etc/ax25/axports | ||
+ | # | ||
+ | # Use simple descriptive names for the ports, to make debugging | ||
+ | # other associated software easier. | ||
+ | |||
+ | # | ||
+ | # The format of this file is: | ||
+ | #portname callsign speed paclen window description | ||
+ | udr0 N7NIX-10 9600 255 2 Winlink | ||
+ | </file> | ||
+ | === ax25d.conf === | ||
+ | <file> | ||
+ | # /usr/local/etc/ax25/ax25d.conf | ||
+ | # | ||
+ | # ax25d Configuration File. | ||
+ | # | ||
+ | # | ||
+ | [N7NIX-10 VIA udr0] | ||
+ | NOCALL * * * * * * L | ||
+ | NOCALL * * * * * * L | ||
+ | default * * * * * * - rmsgw /usr/local/bin/rmsgw rmsgw -l debug -P %d %U | ||
+ | # | ||
+ | [N7NIX VIA udr0] | ||
+ | NOCALL * * * * * * L | ||
+ | default * * * * * * 0 gunn /usr/local/bin/wl2kax25d wl2kax25d -c %U -a %d | ||
+ | # | ||
</file> | </file> |