#!/bin/sh
#
#ident	"@(#)postremove	1.3	07/10/19 SMI"
#
# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# SUNWs9brandr postremove script

if [ "$BASEDIR" = "/" ]; then
	#
	# Unload s9 brand module from system
	#
	id=`/usr/sbin/modinfo | awk '{if ($6 == "s9_brand") print $1}'`
	if [ "X${id}" != "X" ] ; then
		/usr/sbin/modunload -i ${id}
	fi
fi

exit 0
