# ax25 setup
echo ax25 setup
#
#
/usr/sbin/mkiss -s 38400 /dev/ttyS4 /dev/ptypd /dev/ptypc /dev/ptypb /dev/ptypa /dev/ptyp9 /dev/ptyp8 /dev/ptyp7 &
#
sleep 1
#
/usr/sbin/kissattach -i 44.139.11.254 /dev/ttyS6 1
/usr/sbin/kissattach -i 44.139.11.254 /dev/ttyS3 2
/usr/sbin/kissattach -i 44.139.11.254 /dev/ttyS0 3
/usr/sbin/kissattach -i 44.139.11.254 /dev/ttyS1 4
/sbin/ifconfig scc0 44.139.11.254 hw ax25 oh2rbj-5
/sbin/ifconfig scc1 44.139.11.254 hw ax25 oh2rbj-12
#
/usr/sbin/axparms -dev eth0 kiss
#
#/usr/sbin/bpqparms bpq0 -d broadcast
#/sbin/ifconfig bpq0 44.139.11.254 hw ax25 oh2rbj-8
#
#
# rxecho kiss setup
#
# rxecho is started after this script!
#
/usr/sbin/kissattach -i 44.139.11.254 /dev/ttypc kiss1
/usr/sbin/kissattach -i 44.139.11.254 /dev/ttypb kiss2
/usr/sbin/kissattach -i 44.139.11.254 /dev/ttypa kiss3
/usr/sbin/kissattach -i 44.139.11.254 /dev/ttyp9 kiss4
/usr/sbin/kissattach -i 44.139.11.254 /dev/ttyp8 kiss5
/usr/sbin/kissattach -i 44.139.11.254 /dev/ttyp7 kiss6
#
/usr/sbin/kissattach -i 44.139.11.254 /dev/ptyp5 axip
/usr/sbin/kissattach -i 44.139.11.254 /dev/ptyp6 clx
#
# setting kiss parameters
/usr/sbin/kissparms -p 1 -r 128 -t 300
/usr/sbin/kissparms -p 2 -r 128 -t 250
/usr/sbin/kissparms -p 3 -r 128 -t 080
/usr/sbin/kissparms -p 4 -r 128 -t 240
#/usr/sbin/kissparms -p 6 -r 220 -t 350
#/usr/sbin/kissparms -p 1 -r 128 -t 30
#/usr/sbin/kissparms -p 1 -r 128 -t 30
#
/usr/sbin/axparms -parms 1 -idle 100
/usr/sbin/axparms -parms 2 -idle 100
/usr/sbin/axparms -parms 5 -idle 100
/usr/sbin/axparms -parms 6 -idle 100
/usr/sbin/axparms -parms axip -idle 100
/usr/sbin/axparms -parms clx -idle 100
#
#
/usr/sbin/axparms -parms 1 -t1 14
/usr/sbin/axparms -parms 2 -t1 14
/usr/sbin/axparms -parms 5 -t1 12
/usr/sbin/axparms -parms 6 -t1 14
/usr/sbin/axparms -parms 4 -t1 4
/usr/sbin/axparms -parms 3 -t1 5
#
/usr/sbin/axparms -parms 1 -t2 5
/usr/sbin/axparms -parms 2 -t2 6
/usr/sbin/axparms -parms 5 -t2 6
/usr/sbin/axparms -parms 6 -t2 8
/usr/sbin/axparms -parms 6 -n2 30
/usr/sbin/axparms -parms 4 -t2 2
/usr/sbin/axparms -parms 3 -t2 2
#
/usr/sbin/axparms -assoc oh2njr njr
#
#
echo netrom setup
sleep 1
/usr/sbin/nrattach -i 44.139.11.254 netrom &
sleep 1
/usr/sbin/nrattach -i 44.139.11.253 cluster &
sleep 1
#
# Local axip tunnel for clx ;-)
#
/etc/ax25ip > /dev/tty8 2>&1 &
/etc/ax25ipclx > /dev/tty8 2>&1 &
#
sleep 1
/usr/sbin/netromd -i -l 180 -t 30 -d > /dev/tty8 2>&1 &
sleep 1
#
/usr/sbin/nrparms -parms -tries 6
#
/usr/sbin/nrparms -parms -qual 10
/usr/sbin/nrparms -routes 4 oh2rdl-8 + 240
/usr/sbin/nrparms -routes 3 oh2rdx-9 + 240
/usr/sbin/nrparms -routes kiss oh2rbj-0 + 140
/usr/sbin/nrparms -routes 6 oh2rbi-11 + 240
/usr/sbin/nrparms -routes 2 oh2rbt-1 + 1
/usr/sbin/nrparms -routes 4 oh1rbi-9 + 1
/usr/sbin/nrparms -routes 4 oh1rbi-4 + 1
#
/usr/sbin/nrparms -parms -tto 300
#
#
/usr/sbin/ax25d &
sleep 1
#
# rxecho is started from inittab (respawn)
#/usr/sbin/rxecho &
#sleep 1
#
#
/usr/sbin/beacon -t 15 1 "*** OH2RBJ BBS, OH2RBJ-10 netrom node and OH2RBJ-6 cluster in Espoo ***" &
/usr/sbin/beacon -t 15 2 "*** OH2RBJ BBS, OH2RBJ-4 netrom node and OH2RBJ-6 cluster in Espoo ***" &
/usr/sbin/beacon -t 15 5 "*** OH2RBJ BBS, OH2RBJ-5 netrom node and OH2RBJ-6 cluster in Espoo ***" &
/usr/sbin/beacon -t 15 6 "*** OH2RBJ BBS and OH2RBJ-12 node in Espoo KP20IE ***" &
#/usr/sbin/beacon -t 15 1 "*** OH2RBJ BBS and OH2RBJ-10 node in Espoo KP20KE ***" &
#/usr/sbin/beacon -t 15 1 "*** OH2RBJ BBS and OH2RBJ-10 node in Espoo KP20KE ***" &
#
#
echo ax25 setup done
#
# ax25 tcp/ip routing
route add 44.139.8.99 nr0
arp -t netrom -s 44.139.8.99 OH2RBI-1
route add default gw 44.139.8.99
#
# fixed routes...
route add oh2bua sl1
route add oh2ken sl1
#
route add oh2njr-2 eth0
#
# starting clx up
#
#
echo Starting postmaster as user postgres
su -c "/usr/local/clx/postgres/bin/postmaster> /dev/tty9 2>&1 &" -l postgres
#
echo Starting clx after 15 seconds...
su -c "~clx_us/tools/clx_start > /dev/tty9 2>&1 &" -l clx_us
#
### EOF
