#!/bin/sh

# The performance test at x25 level for 2 channels on VCOM-25 or VCOM-24/4
# running in loopback

xcf_config()
{

echo "
TYPE = WAN
LAPB_PHY_IF = DCE
LAPB_BAUD = $1
LAPB_MAXFRAME = $2
" > /tmp/x25port.1A

echo "
TYPE = WAN
LAPB_PHY_IF = DTE
LAPB_MAXFRAME = $2
LAPB_BAUD = 0 " > /tmp/x25port.1C

echo "
TYPE = WAN " > /tmp/x25port.1B

echo "
TYPE = WAN " > /tmp/x25port.1D

/usr/src/b_vcom5.0/sbeux/x25utils/xcf/xcf -b1 /tmp/x25port
rm /tmp/x25port.*
/usr/src/b_vcom5.0/sbeux/x25utils/vcomdl/vcom_cfg 1
}

xcf_config 2000000 262
