#!/bin/sh PATH=/bin:/usr/bin:/usr/sbin CRONTAB=/etc/crontab if [ "$2" = "DEINSTALL" ]; then # delete entries in crontab sed -i "" -e '/# == ourmon port cron start/,/# == ourmon port cron end/{' \ -e 'd' \ -e '}' ${CRONTAB} fi