#!/bin/sh
#
# postremove:  Edit rmmount.conf file when user remove a package.
#             
#
# @(#)postremove

#
# Remove postinstalled or clientinstalled files
#
rm -f 	/usr/lib/rmmount/action_wabi.so.1
rm -f 	/etc/cetables/icons/appman.*
rm -f 	/etc/cetables/icons/config.*
rm -f 	/etc/cetables/icons/default.*
rm -f 	/etc/cetables/icons/dos.*
rm -f 	/etc/cetables/icons/filev.*
rm -f 	/etc/cetables/icons/wininst.*
rm -r	/etc/cetables/icons

#
# Remove action_wabi.so.1 from rmmount.conf.
#

ACTIONWABI="`grep action_wabi.so /etc/rmmount.conf`"
echo "$ACTIONWABI"
if [ -z "$ACTIONWABI" ]
then
    echo "The Volume Manager has no Wabi information"
else
    echo "Above line(s) was deleted from /etc/rmmount.conf"
    sed '/action_wabi.so/d' /etc/rmmount.conf > /etc/rmmount.conf.tmp
    mv /etc/rmmount.conf /etc/rmmount.conf-
    mv /etc/rmmount.conf.tmp /etc/rmmount.conf
fi
