forked from hummypkg/webif
0dd9641e76
git-svn-id: file:///root/webif/svn/pkg/webif/trunk@3470 2a923420-c742-0410-a762-8d5b09965624
20 lines
358 B
Bash
Executable File
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
|
|
|