# # Cleanup the crontab for root # ROOT_CRONTAB=/var/spool/cron/crontabs/root grep "$BASEDIR/$PKG/explorer" $ROOT_CRONTAB >/dev/null if [ $? = 0 ] then PAT=`echo "$BASEDIR/$PKG/explorer" | sed 's!\/!\\\/!g'` # delete any existing root cron entry crontab -l | sed -e "/$PAT/d" > /tmp/$$cron crontab /tmp/$$cron rm -f /tmp/$$cron echo "\nDisabling Sun Explorer from root crontab.\n" fi