linkup is a wrapper function for waiting interface ready and up.
change to use linkup as what we do in ifup script.
Signed-off-by: Dave Young <dyoung@redhat.com>
if ! ip link set $netif mtu $mtu ; then
ip link set $netif down
ip link set $netif mtu $mtu
- ip link set $netif up
- wait_for_if_up $netif
+ linkup $netif
fi
fi
case $reason in
PREINIT)
echo "dhcp: PREINIT $netif up"
- ip link set $netif up
- wait_for_if_up $netif
+ linkup $netif
;;
BOUND)
echo "dhcp: BOND setting $netif"