#
# Copyright (c) 2000 by Sun Microsystems, Inc.
# All rights reserved.
#
# pragma ident   "@(#)postinstall.sh	1.4 01/06/08 SMI"

BBROOT=$PKG_INSTALL_ROOT
export BBROOT

. ${BBROOT}/etc/opt/SUNWbb/blackbox.rc  

BBLPCMD=$BBPATH/bin/bblpcmd

pkginfo SUNWutkio > /dev/null 2>&1
if [ $? = 0 ]; then
	if [ -f $BBLPCMD ]; then
		rm $BBLPCMD 
	fi
	echo "!# /bin/sh \n" > $BBLPCMD
	echo "exec /usr/bin/lp \"\$@\"" >> $BBLPCMD
	chmod a+x $BBLPCMD
fi

