# /* # * << preremove >> # * All Rights Reserved. Copyright (C) 2001, 2007, Hitachi, Ltd. # */ #--------------------------------- # DRVSOL05800007 start # HBSA #--------------------------------- SOLVER=`uname -r` HBSA_DIR=/opt/HDVM/HBaseAgent PP_NAME="DynamicLinkManager" HBSA_RTN=0 HBSA_CNT=20 INS_STATUS="uninstallation" # DRVSOL05900005 # HBsA stop # DRVSOL05800028 start HBSA_CNT=`expr $HBSA_CNT + 1` # HBSA_CNT=21 if [ -x $HBSA_DIR/bin/hbsasrv ]; then $HBSA_DIR/bin/hbsasrv stop > /dev/null 2> /dev/null HBSA_RTN=$? if [ $HBSA_RTN -ge 1 -a $HBSA_RTN -le 15 ]; then echo "" echo "KAPL09142-E HDLM $INS_STATUS cannot be performed." echo "Wait a while, and then perform $INS_STATUS again. Error Code = $HBSA_CNT, $HBSA_RTN" echo "" exit 1 fi fi # DRVSOL05800028 end # HDLM Add-on stop HBSA_CNT=`expr $HBSA_CNT + 1` # HBSA_CNT=22 if [ -x $HBSA_DIR/bin/amc_activate ]; then $HBSA_DIR/bin/amc_activate -d hdlm > /dev/null 2> /dev/null HBSA_RTN=$? if [ $HBSA_RTN -ge 1 -a $HBSA_RTN -le 15 ]; then echo "" echo "KAPL09142-E HDLM $INS_STATUS cannot be performed." echo "Wait a while, and then perform $INS_STATUS again. Error Code = $HBSA_CNT, $HBSA_RTN" echo "" exit 1 fi fi # Delete PP name HBSA_CNT=`expr $HBSA_CNT + 1` # HBSA_CNT=23 if [ -x $HBSA_DIR/agent/bin/amc_registpp ]; then $HBSA_DIR/agent/bin/amc_registpp -del $PP_NAME > /dev/null 2> /dev/null HBSA_RTN=$? if [ $HBSA_RTN -ge 1 -a $HBSA_RTN -le 15 ]; then echo "" echo "KAPL09143-E HDLM $INS_STATUS cannot be performed. Error Code = $HBSA_CNT, $HBSA_RTN" echo "" exit 1 fi fi # DRVSOL05900005 # DRVSOL05800007 end #--------------------------------- # dlmguiuninst.sh #--------------------------------- if [ -x $BASEDIR/opt/DynamicLinkManager/bin/dlmguiuninst.sh ]; then # DRVSOL05800009,DRVSOL05800028 cd $BASEDIR/opt/DynamicLinkManager/bin sh dlmguiuninst.sh fi # DRVSOL05800009,DRVSOL05800028 #--------------------------------- # Stop manager process. #--------------------------------- if [ -x /etc/init.d/DLMManager stop ]; then # DRVSOL05800009 /etc/init.d/DLMManager stop fi # DRVSOL05800009 #--------------------------------- # Detach alart and filter drivers. #--------------------------------- rem_drv dlmfdrv > /dev/null 2> /dev/null rem_drv dlmndrv > /dev/null 2> /dev/null rem_drv dlmadrv > /dev/null 2> /dev/null exit 0