#! /bin/sh

ifconfig eth0 down

#
# Start up my sl0 port on /dev/ttyS1 at 9600 Baud with callsign G4KLX-1
#
axattach -s 9600 /dev/ttyS1 g4klx-1 &
sleep 1
ifconfig sl0 44.131.4.1 arp mtu 236

#
#  Don't start up my sl1 port /dev/ttyS2 at 9600 Baud with callsign G4KLX-2
#
#axattach -s 9600 /dev/ttyS3 g4klx-2 &
#sleep 1
#ifconfig sl1 44.131.4.2 arp mtu 236

#
# Create a NET/ROM port with callsign G4KLX
#
ifconfig nr0 44.131.4.5 hw netrom g4klx

#
# IP packets to 44.1.4.7 is TCP/IP over NET/ROM.
#
route add 44.131.4.7 nr0
arp -t netrom -s 44.131.4.7 g4klx-3
nrparms -nodes g4klx-3 + port 120 6 sl0 g4klx-3

#
# All other IP goes over sl0
#
route add default sl0

#
# Create a BPQ Ether port, eth0 with callsign G4KLX-10
#
ifconfig eth0 44.131.4.10 arp
route add 44.131.4.11 eth0
axparms -dev eth0 g4klx-10

exit 0
