code cleanup

This commit is contained in:
Jack L. Frost 2015-01-19 16:59:09 +03:00
parent 575b627ff0
commit d174fcedcb
1 changed files with 2 additions and 2 deletions

View File

@ -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
}