diff options
author | Denys Vlasenko | 2017-07-15 19:18:58 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-07-18 19:20:58 +0200 |
commit | 56a361bec15bdc3ee13b2208d43747298f281867 (patch) | |
tree | 68e43c02b9fc9b81d6e297c02d7ef70c03bca303 /examples/var_service | |
parent | 6f13dd1d6574bbc0eacd5574d2e451596a92df5d (diff) | |
download | busybox-56a361bec15bdc3ee13b2208d43747298f281867.zip busybox-56a361bec15bdc3ee13b2208d43747298f281867.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" |