:
#ident "@(#)painit	1.1 90/09/28"
#
#	invoke as "painit unit board func"
#

trap ":" 1 2 3 15

PATH=/bin:/usr/bin:/etc; export PATH
unit=$1
file=$ROOT/etc/conf/init.d/pa

grep " lp${unit} " ${file}.sav >>$file 2>/dev/null
if [ $? -ne 0 ]
then
	grep " lp${unit}$" ${file}.sav >>$file 2>/dev/null
	if [ $? -ne 0 ]
	then
		echo "234:off:/altos/bin/lpset Parallel lp${unit}" >>$file
	fi
fi

exit 0
