- # if error count > retry_count leave here
- [ $retry_count -gt 0 -a $__CNT -gt $retry_count ] && \
- write_log 14 "Get local IP via '$ip_source' failed after $retry_count retries"
- write_log 4 "Get local IP via '$ip_source' failed - retry $__CNT/$retry_count in $RETRY_SECONDS seconds"
+ # if error count > retry_max_count leave here
+ [ $retry_max_count -gt 0 -a $__CNT -gt $retry_max_count ] && \
+ write_log 14 "Get current IP via '$ip_source' failed after $retry_max_count retries"
+ write_log 4 "Get current IP via '$ip_source' failed - retry $__CNT/$retry_max_count in $RETRY_SECONDS seconds"