preremove revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
1N/A# The contents of this file are subject to the terms of the 1N/A# Common Development and Distribution License (the "License"). 1N/A# You may not use this file except in compliance with the License. 1N/A# See the License for the specific language governing permissions 1N/A# and limitations under the License. 1N/A# When distributing Covered Code, include this CDDL HEADER in each 1N/A# If applicable, add the following below this CDDL HEADER, with the 1N/A# fields enclosed by brackets "[]" replaced with your own identifying 1N/A# information: Portions Copyright [yyyy] [name of copyright owner] 1N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 1N/A# Use is subject to license terms. 1N/A# reverse dependency order 1N/A# Set alternate command syntax (if needed) 1N/Aif [
"${PKG_INSTALL_ROOT}" =
"/" ];
then 1N/A# rem_devlink - remove entry from ${DEVLINKTB} 1N/A# reconfig modules, to prevent error caused from manual unload 1N/A# This is workaround for 6255461 1N/A# Disable the service, if it is imported 1N/A REMOVERR=
"ERROR: The removal cannot be completed due to an error \ 1N/A removing the ${MODULE} loadable module. The file ${ERRLOG} \ 1N/A contains the errors. Exiting..." 1N/A# Since spuni is not configured via add_drv, we cannot rely on rem_drv to 1N/A# unload it. If it's still loaded, try to unload it. 1N/A echo "Warning: Failed to unload spuni module." 1N/A# ignore any failures to modunload spuni