webif/CONTROL/prerm
hummypkg 0dd9641e76 move plugins, fix cron, add queue upgrade
git-svn-id: file:///root/webif/svn/pkg/webif/trunk@3470 2a923420-c742-0410-a762-8d5b09965624
2017-01-05 22:58:05 +00:00

20 lines
358 B
Bash
Executable File

#!/bin/sh
export tmpf=/tmp/cronf.$$
crontab=$PKG_ROOT/bin/crontab
if [ -x $crontab ]; then
$crontab -l | grep -v webif/lib/bin/auto \
| grep -v webif/lib/auto > $tmpf
[ -s $tmpf ] && $crontab $tmpf || $crontab -r
fi
ana=/mod/etc/anacrontab
egrep -v 'backup/backup.jim|bin/diskattrs' $ana > $tmpf
cp $tmpf $ana
[ -f $tmpf ] && rm -f $tmpf
exit 0