* [PATCH] use linkup in dhclient-script.sh
@ 2013-01-06 6:17 Dave Young
[not found] ` <20130106061754.A96B664097-4/PLUo9XfK+sDdueE5tM26fLeoKvNuZc@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Dave Young @ 2013-01-06 6:17 UTC (permalink / raw)
To: harald-H+wXaHxf7aLQT0dZR+AlfA, initramfs-u79uwXL29TY76Z2rM5mHXA
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-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
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"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] use linkup in dhclient-script.sh
[not found] ` <20130106061754.A96B664097-4/PLUo9XfK+sDdueE5tM26fLeoKvNuZc@public.gmane.org>
@ 2013-01-22 14:35 ` Harald Hoyer
0 siblings, 0 replies; 2+ messages in thread
From: Harald Hoyer @ 2013-01-22 14:35 UTC (permalink / raw)
To: Dave Young; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
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 <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> ---
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-22 14:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-06 6:17 [PATCH] use linkup in dhclient-script.sh Dave Young
[not found] ` <20130106061754.A96B664097-4/PLUo9XfK+sDdueE5tM26fLeoKvNuZc@public.gmane.org>
2013-01-22 14:35 ` Harald Hoyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox