prerm to cleanup crontab

This commit is contained in:
Bob Buxton 2020-07-18 16:59:37 +01:00
parent e5bc42ff0a
commit 193f94929f

13
CONTROL/prerm Executable file
View File

@ -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