diff --git a/CONTROL/prerm b/CONTROL/prerm new file mode 100755 index 0000000..01782a8 --- /dev/null +++ b/CONTROL/prerm @@ -0,0 +1,13 @@ +#!/bin/sh + +export tmpf=/tmp/cronf.$$ + +crontab=$PKG_ROOT/bin/crontab +if [ -x $crontab ]; then + $crontab -l | grep -v /mod/bin/chaseget > $tmpf + [ -s $tmpf ] && $crontab $tmpf || $crontab -r +fi + +[ -f $tmpf ] && rm -f $tmpf + +exit 0