#! /bin/sh # # $Id: nw_node_postremove.SunOS,v 1.3.10.2 2005/12/13 22:34:06 chejle Exp $ Copyright (c) 2003-2005 EMC Corporation. # # # Copyright (c) 2003-2005 EMC Corporation. # # All rights reserved. This is an UNPUBLISHED work, and # comprises proprietary and confidential information of EMC. # Unauthorized use, disclosure, and distribution are strictly # prohibited. Use, duplication, or disclosure of the software # and documentation by the U.S. Government is subject to # restrictions set forth in a license agreement between the # Government and EMC or other written agreement specifying # the Government's rights to use the software and any applicable # FAR provisions, such as FAR 52.227-19. # PATH=/usr/sbin:/usr/bin:/sbin PRODUCT_NAME="Sun StorEdge EBS" #============================================================================== # Function: del_devlink # Summary: remove entries from /etc/devlink.tab #============================================================================== del_devlink() { file=${PKG_INSTALL_ROOT}/etc/devlink.tab echo "Removing entries from ${file}" # remove entries from /etc/devlink.tab sedcmd="/^#begin - added by ${PKGINST}/,/^#end - added by ${PKGINST}/d" sed -e "${sedcmd}" ${file} > ${file}.tmp.$$ if [ $? -eq 0 ]; then mv ${file}.tmp.$$ ${file} else echo "cleanup of ${file} failed" exit 2 fi } #============================================================================== # Function: main #============================================================================== del_devlink exit 0