From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Hoyer Subject: Re: [PATCH] use linkup in dhclient-script.sh Date: Tue, 22 Jan 2013 15:35:36 +0100 Message-ID: <50FEA3B8.2040701@redhat.com> References: <20130106061754.A96B664097@darkstar.nay.redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130106061754.A96B664097-4/PLUo9XfK+sDdueE5tM26fLeoKvNuZc@public.gmane.org> Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Dave Young Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Am 06.01.2013 07:17, schrieb Dave Young: > > 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(-) > > --- dracut.orig/modules.d/40network/dhclient-script.sh > +++ dracut/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" merged