#!/bin/ksh

pathname=/usr/openwin/server/lib/libfont.so.1

exists=$(/usr/sbin/pkgchk -R $ROOTDIR -lp $pathname | /usr/bin/grep SUNWxwplt)

if [ -n "$exists" ]; then
	/usr/sbin/removef -R $ROOTDIR SUNWxwplt $pathname || exit 1
	/usr/sbin/removef -R $ROOTDIR -f SUNWxwplt	|| exit 1
else
	exit 0
fi
