forked from Spark/ssm-services
wtf man
This commit is contained in:
parent
96e76fa4d1
commit
34926f5fbf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user