From ecace09a31390356aa3096acc70efa6620cdc6d4 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 3 May 2017 06:06:52 +0200 Subject: [PATCH] firewall: only retry in cron mode --- src/etc/rc.update_bogons | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/etc/rc.update_bogons b/src/etc/rc.update_bogons index 7e8875010..cc3c81c31 100755 --- a/src/etc/rc.update_bogons +++ b/src/etc/rc.update_bogons @@ -44,7 +44,11 @@ while [ ${RETRIES} -gt 0 ]; do break fi - RETRIES=$((RETRIES-1)) + if [ "${COMMAND}" = "cron" ]; then + RETRIES=$((RETRIES - 1)) + else + RETRIES=0 + fi done if [ ${RETRIES} -eq 0 ]; then