diff options
author | Denys Vlasenko | 2017-07-15 19:18:58 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-07-15 19:20:45 +0200 |
commit | 08dfafc43757c42971b4bc3709ae7a5cda7c21fb (patch) | |
tree | 21d09e64ae9858c8285410ebd6aae6a17439efe1 /examples/var_service | |
parent | ed2b9225371a36dd2694df65e395dc32fd94c5dd (diff) | |
download | busybox-08dfafc43757c42971b4bc3709ae7a5cda7c21fb.zip busybox-08dfafc43757c42971b4bc3709ae7a5cda7c21fb.tar.gz |
fix more instances of ": $((a++))" in shell scripts
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 e0e87a1..8aca90c 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" |