chaseget/CONTROL/postinst

16 lines
301 B
Bash
Executable File

#!/bin/sh
export tmpf=/tmp/cronf.$$
# Add cron jobs
crontab=$PKG_ROOT/bin/crontab
if [ -x $crontab ]; then
$crontab -l | grep -v /mod/bin/chaseget > $tmpf
cat $tmpf - << EOM | $crontab -
13-59/20 * * * * /mod/bin/chaseget -standby>/dev/null 2>&1
EOM
fi
[ -f $tmpf ] && rm -f $tmpf