From 6cb77ea91f3e6cc4fc7b92276a971e7b154306b9 Mon Sep 17 00:00:00 2001 From: Dave Young Date: Sun, 6 Jan 2013 14:17:54 +0800 Subject: [PATCH] use linkup in dhclient-script.sh 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 --- modules.d/40network/dhclient-script.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules.d/40network/dhclient-script.sh b/modules.d/40network/dhclient-script.sh index 12a67e8b7..a619c0422 100755 --- a/modules.d/40network/dhclient-script.sh +++ b/modules.d/40network/dhclient-script.sh @@ -25,8 +25,7 @@ setup_interface() { 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 @@ -62,8 +61,7 @@ netif=$interface 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" -- 2.47.3