detectads/CONTROL/prerm

15 lines
256 B
Plaintext
Raw Normal View History

2020-02-27 23:56:45 +00:00
#!/bin/sh
export tmpf=/tmp/cronf.$$
crontab=$PKG_ROOT/bin/crontab
if [ -x $crontab ]; then
$crontab -l | grep -v /mod/webif/plugin/detectads/detectads > $tmpf
[ -s $tmpf ] && $crontab $tmpf || $crontab -r
fi
[ -f $tmpf ] && rm -f $tmpf
exit 0