#!/bin/ksh

if [ $# != 1 ]
then
echo 'Usage : $0 "<Max Number of CV on CLNP>" '
echo '	This command change the maximum of incoming or outgoing X25'
echo '	connection accepted/requested by CLNP'
echo '	Example : if you select the value 1 you will be able to '
echo '		have at the maximum one incoming call AND one outgoing call'
echo '		from the same remote NSAP (==> in total 2 CVs)'
exit 3
fi

if [ $1 = 0 ]
then
echo Sorry but 0 is not allowed
exit 2
fi

/bin/adb -w -k /dev/ksyms /dev/mem > /dev/null <<!
MaxNumberOfCv/w $1
MaxNumberOfCv/w $1
!

