#!@l_prefix@/bin/openpkg rc ## ## rc.fprot -- Run-Commands ## %config fprot_enable="$openpkg_rc_def" fprot_dats="ftp://ftp.f-prot.com/pub/" fprot_update="daily" %common fprot_update () { rm -rf /tmp/fprot @l_prefix@/sbin/f-prot-update -cron -quiet || exit $? chmod 644 @l_prefix@/share/fprot/*.DEF rm -rf /tmp/fprot } %quarterly -u @l_musr@ rcService fprot enable yes || exit 0 if [ ".$fprot_update" = .quarterly ]; then fprot_update || exit $? fi %hourly -u @l_musr@ rcService fprot enable yes || exit 0 if [ ".$fprot_update" = .hourly ]; then fprot_update || exit $? fi %daily -u @l_musr@ rcService fprot enable yes || exit 0 if [ ".$fprot_update" = .daily ]; then fprot_update || exit $? fi %weekly -u @l_musr@ rcService fprot enable yes || exit 0 if [ ".$fprot_update" = .weekly ]; then fprot_update || exit $? fi