#!/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 9600 /home/ax25/yam111.mcs bitrate 9600
/usr/sbin/yamcfg yam1 bitrate 9600 
/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 
#echo OK
#/sbin/route add -host f6fbb-1 mss 512 irtt 30000 yam1
#/sbin/route add -host 44.151.31.8 yam1
#echo OK
#echo Setting f6fbb-1 as the gateway
#/sbin/route add-net 44.151.31.8 netmask 255.255.255.0 gw f6fbb-1 yam1
#echo OK
  
