prerm to cleanup crontab
This commit is contained in:
parent
e5bc42ff0a
commit
193f94929f
13
CONTROL/prerm
Executable file
13
CONTROL/prerm
Executable 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
|
Loading…
x
Reference in New Issue
Block a user