#!@l_prefix@/bin/openpkg rc
##
##  rc.squidguard -- Run-Commands
##

%config
    squidguard_enable="$openpkg_rc_def"
    squidguard_update="daily"

%quarterly -u @l_rusr@
    rcService squidguard enable yes || exit 0
    if [ ".$squidguard_update" = .quarterly ]; then
        @l_prefix@/bin/squidguard-update || exit $?
    fi

%hourly -u @l_rusr@
    rcService squidguard enable yes || exit 0
    if [ ".$squidguard_update" = .hourly ]; then
        @l_prefix@/bin/squidguard-update || exit $?
    fi

%daily -u @l_rusr@
    rcService squidguard enable yes || exit 0
    if [ ".$squidguard_update" = .daily ]; then
        @l_prefix@/bin/squidguard-update || exit $?
    fi

%weekly -u @l_rusr@
    rcService squidguard enable yes || exit 0
    if [ ".$squidguard_update" = .weekly ]; then
        @l_prefix@/bin/squidguard-update || exit $?
    fi

