Skip to content

Instantly share code, notes, and snippets.

@tehmaze
Created November 2, 2015 20:02
Show Gist options
  • Save tehmaze/9034d33a4e13dd6de0ea to your computer and use it in GitHub Desktop.
Save tehmaze/9034d33a4e13dd6de0ea to your computer and use it in GitHub Desktop.
start ax25ipd KISS mode
socket udp 93
mode tnc
device /dev/pts/2
speed 115200
loglevel 4
broadcast QST-0 NODES-0 FBB-0
# extern
route ks0nod 194.59.177.64 udp 93 d
# intern
route ALAI 172.23.40.3 udp 10093 b
route BEAN 172.23.40.4 udp 10093 b
axudp N0CALL-11 - 255 4 AX.25<->IP
#!/bin/bash
tmpfile="/tmp/$$.start"
kissnetd -p2 > $tmpfile 2>/dev/null & disown
sleep 2
function attach() {
read PTS1 PTS2
echo "Starting ipd on $PTS1 and $PTS2"
sleep 1
sed -i "s,device /dev/.*$,device $PTS2," /etc/ax25/ax25ipd.conf
ax25ipd
sleep 1
kissattach $PTS1 axudp
}
tail -n 1 $tmpfile | attach
rm $tmpfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment