]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network: correct rules for multiple nics
authorHarald Hoyer <harald@redhat.com>
Fri, 16 Apr 2010 14:41:24 +0000 (16:41 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 16 Apr 2010 15:59:48 +0000 (17:59 +0200)
modules.d/40network/net-genrules.sh

index fdb6ab67a131c062272ff2f859d985fb6bfe4745..10d6ecd001f107efe9dbbfc1a8703da127b983bb 100755 (executable)
@@ -29,7 +29,7 @@ fix_bootif() {
     # If we have to handle multiple interfaces, handle only them.
     elif [ -n "$IFACES" ] ; then
        for iface in $IFACES ; do
-           printf 'ACTION=="add", SUBSYSTEM=="net", NAME=="%s", RUN+="/sbin/ifup $env{INTERFACE}"\n' "$iface"
+           printf 'ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="%s", RUN+="/sbin/ifup $env{INTERFACE}"\n' "$iface"
        done
 
     # Default: We don't know the interface to use, handle all