Add function linkup
set link up usually include two steps, ip link set <dev> up and wait_for_if_up <dev>. Now do these two steps in one function linkup. Later patch will add other code into it. Signed-off-by: Dave Young <dyoung@redhat.com>master
parent
efa5eb424d
commit
b455451f49
|
@ -345,3 +345,8 @@ wait_for_route_ok() {
|
|||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
linkup() {
|
||||
ip link set $1 up 2>/dev/null && wait_for_if_up $1 2>/dev/null
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue