#!/bin/sh
#
# Script to start the test environment when simulated data has to
# be sent through a socket.
#
# First start the master end to read from pipe 'if'
#
( ./sendkiss -f if /dev/ptya0 )&
sleep 3
#
# Now start the slave end sending the data into the socket associated
# with axport 'asy'
kissattach /dev/ttya0 asy 40.145.40.3
ifconfig ax0 netmask 255.255.0.0 broadcast 44.145.255.255
ifconfig ax0 arp mtu 256
axparms -setcall ax0 OZ6BL
echo 1   > /proc/sys/net/ax25/ax0/standard_window_size
echo 2   > /proc/sys/net/ax25/ax0/t1_timeout
echo 5   > /proc/sys/net/ax25/ax0/maximum_retry_count
 
#
# The call sign should match the one used when binding to this socket
echo "Now use e.g. 'cat 97040513.kss | playspeed > if' to send data to the socket..."
