#!/bin/sh
#
#ident	"@(#)postremove	1.2	07/08/28 SMI"
#
# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# SUNWs8brandr postremove script

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

exit 0
