From d174fcedcb9c9e9d3af21035de5a0be1d7e165b6 Mon Sep 17 00:00:00 2001 From: fbt Date: Mon, 19 Jan 2015 16:59:09 +0300 Subject: [PATCH] code cleanup --- init.d/lo.iface | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.d/lo.iface b/init.d/lo.iface index 2ad1484..a62c25a 100755 --- a/init.d/lo.iface +++ b/init.d/lo.iface @@ -9,8 +9,8 @@ wait_for_iface() { local iface="$1" timer='0' timeout='6' until [[ "ip link show $iface up" ]]; do - [[ "$timer" -ge "$timeout" ]] && { return 1; } - timer=$[timer+1] + (( timer >= timeout )) && { return 1; } + (( timer++ )) done }