Blame 0026-40network-net-genrules.sh-move-ifup-in-the-initqueue.patch

Harald Hoyer ee76a0
From af8c8ed9f651b1617296a2d7654a981f006c5ad3 Mon Sep 17 00:00:00 2001
Harald Hoyer ee76a0
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer ee76a0
Date: Fri, 2 Mar 2012 11:39:11 +0100
Harald Hoyer ee76a0
Subject: [PATCH] 40network/net-genrules.sh: move ifup in the initqueue
Harald Hoyer ee76a0
Harald Hoyer ee76a0
---
Harald Hoyer ee76a0
 modules.d/40network/net-genrules.sh |   12 ++++++------
Harald Hoyer ee76a0
 1 files changed, 6 insertions(+), 6 deletions(-)
Harald Hoyer ee76a0
Harald Hoyer ee76a0
diff --git a/modules.d/40network/net-genrules.sh b/modules.d/40network/net-genrules.sh
Harald Hoyer ee76a0
index 323d185..6c46d9a 100755
Harald Hoyer ee76a0
--- a/modules.d/40network/net-genrules.sh
Harald Hoyer ee76a0
+++ b/modules.d/40network/net-genrules.sh
Harald Hoyer ee76a0
@@ -36,27 +36,27 @@ fix_bootif() {
Harald Hoyer ee76a0
     if [ -n "$BOOTIF" ] ; then
Harald Hoyer ee76a0
         BOOTIF=$(fix_bootif "$BOOTIF")
Harald Hoyer ee76a0
         if [ -n "$netroot" ]; then
Harald Hoyer ee76a0
-            printf 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="%s", OPTIONS+="event_timeout=360", RUN+="/sbin/ifup $env{INTERFACE}"\n' "$BOOTIF"
Harald Hoyer ee76a0
+            printf 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="%s", OPTIONS+="event_timeout=360", RUN+="/sbin/initqueue --onetime /sbin/ifup $env{INTERFACE}"\n' "$BOOTIF"
Harald Hoyer ee76a0
         else
Harald Hoyer ee76a0
-            printf 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="%s", OPTIONS+="event_timeout=360", RUN+="/sbin/ifup $env{INTERFACE} -m"\n' "$BOOTIF"
Harald Hoyer ee76a0
+            printf 'ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="%s", OPTIONS+="event_timeout=360", RUN+="/sbin/initqueue --onetime /sbin/ifup $env{INTERFACE} -m"\n' "$BOOTIF"
Harald Hoyer ee76a0
         fi
Harald Hoyer ee76a0
 
Harald Hoyer ee76a0
     # If we have to handle multiple interfaces, handle only them.
Harald Hoyer ee76a0
     elif [ -n "$IFACES" ] ; then
Harald Hoyer ee76a0
         for iface in $IFACES ; do
Harald Hoyer ee76a0
             if [ -n "$netroot" ]; then
Harald Hoyer ee76a0
-                printf 'SUBSYSTEM=="net", ENV{INTERFACE}=="%s", OPTIONS+="event_timeout=360", RUN+="/sbin/ifup $env{INTERFACE}"\n' "$iface"
Harald Hoyer ee76a0
+                printf 'SUBSYSTEM=="net", ENV{INTERFACE}=="%s", OPTIONS+="event_timeout=360", RUN+="/sbin/initqueue --onetime /sbin/ifup $env{INTERFACE}"\n' "$iface"
Harald Hoyer ee76a0
             else
Harald Hoyer ee76a0
-                printf 'SUBSYSTEM=="net", ENV{INTERFACE}=="%s", OPTIONS+="event_timeout=360", RUN+="/sbin/ifup $env{INTERFACE} -m"\n' "$iface"
Harald Hoyer ee76a0
+                printf 'SUBSYSTEM=="net", ENV{INTERFACE}=="%s", OPTIONS+="event_timeout=360", RUN+="/sbin/initqueue --onetime /sbin/ifup $env{INTERFACE} -m"\n' "$iface"
Harald Hoyer ee76a0
             fi
Harald Hoyer ee76a0
         done
Harald Hoyer ee76a0
 
Harald Hoyer ee76a0
     # Default: We don't know the interface to use, handle all
Harald Hoyer ee76a0
     else
Harald Hoyer ee76a0
         if [ -n "$netroot" ]; then
Harald Hoyer ee76a0
-            printf 'SUBSYSTEM=="net", OPTIONS+="event_timeout=360", RUN+="/sbin/ifup $env{INTERFACE}"\n'
Harald Hoyer ee76a0
+            printf 'SUBSYSTEM=="net", OPTIONS+="event_timeout=360", RUN+="/sbin/initqueue --onetime /sbin/ifup $env{INTERFACE}"\n'
Harald Hoyer ee76a0
         else
Harald Hoyer ee76a0
-            printf 'SUBSYSTEM=="net", OPTIONS+="event_timeout=360", RUN+="/sbin/ifup $env{INTERFACE} -m"\n'
Harald Hoyer ee76a0
+            printf 'SUBSYSTEM=="net", OPTIONS+="event_timeout=360", RUN+="/sbin/initqueue --onetime /sbin/ifup $env{INTERFACE} -m"\n'
Harald Hoyer ee76a0
         fi
Harald Hoyer ee76a0
     fi
Harald Hoyer ee76a0