#!/bin/sh
ifconfig yam1 down > /dev/null
modprobe yam
/bin/setserial /dev/ttyS1 uart none
/usr/sbin/yamcfg yam1 io 0x2f8 irq 3
/usr/sbin/yamcfg yam1 load 1200 /ax25/yam1k2.mcs bitrate 1200 
/usr/sbin/yamcfg yam1 bitrate 1200 txtail 50
/sbin/ifconfig yam1 44.151.31.29 netmask 255.255.255.0 hw ax25 f1sxo-3 up 
echo 0 > /proc/sys/net/ax25/yam1/backoff_type
# /sbin/route add default yam1
echo Trying to contact f6fbb-1
/sbin/route add -host f6bex-10 mss 512 irtt 30000 yam1
#/sbin/route add -host 44.151.31.9 yam1
echo OK
#echo Setting f6bex-10 as the gateway
/sbin/route add -net 44.151.31.0 netmask 255.255.255.0 gw 44.151.31.9 
