#! /bin/sh
#
# SUNWusx.u postpatch script
#
# We are putting this in drivers patch because the us driver has not
# changed but just the postinstall script. There are no deliverables and 
# just a postinsrall. So there is nowhere to put it
# other than in generic drivers patch.

PATH="/usr/bin:/usr/sbin:${PATH}"
export PATH

not_installed() {
	driver=$1
	grep "^${driver} " ${ROOTDIR}/etc/name_to_major > /dev/null 2>&1
	return $?
}

EXIT=0

not_installed us ||
add_drv -b ${ROOTDIR} -i 'SUNW,UltraSPARC-III "SUNW,UltraSPARC-III+" SUNW,UltraSPARC-IIIi SUNW,UltraSPARC-IIe' -n us || 
EXIT=1

exit ${EXIT}
