diff options
Diffstat (limited to 'examples/var_service')
-rwxr-xr-x | examples/var_service/dhcp_if_pinger/run | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/var_service/dhcp_if_pinger/run b/examples/var_service/dhcp_if_pinger/run index e0e87a16a..8aca90c1a 100755 --- a/examples/var_service/dhcp_if_pinger/run +++ b/examples/var_service/dhcp_if_pinger/run @@ -30,7 +30,7 @@ test x"$router" != x"" || exec env - sleep "$ping_time" failcnt=0 while true; do ping $ping_opts "$router" && exec env - sleep "$ping_time" - : $((failcnt++)) + failcnt=$((failcnt+1)) msg "Failed to ping $router, fail count:$failcnt" test $failcnt -ge $max_fail && break env - sleep "$retry_time" |