This commit is contained in:
Jack L. Frost 2015-05-25 12:26:03 +03:00
parent 96e76fa4d1
commit 34926f5fbf

View File

@ -9,7 +9,7 @@ service_args="link set $cfg_iface up"
wait_for_iface() {
local iface="$1" timer='0' timeout='6'
until [[ "ip link show $iface up" ]]; do
until [[ "$(ip link show $iface up)" ]]; do
(( timer >= timeout )) && { return 1; }
(( timer++ ))
done