code cleanup
This commit is contained in:
parent
575b627ff0
commit
d174fcedcb
|
@ -9,8 +9,8 @@ wait_for_iface() {
|
||||||
local iface="$1" timer='0' timeout='6'
|
local iface="$1" timer='0' timeout='6'
|
||||||
|
|
||||||
until [[ "ip link show $iface up" ]]; do
|
until [[ "ip link show $iface up" ]]; do
|
||||||
[[ "$timer" -ge "$timeout" ]] && { return 1; }
|
(( timer >= timeout )) && { return 1; }
|
||||||
timer=$[timer+1]
|
(( timer++ ))
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user