From: Harald Hoyer Date: Fri, 16 Apr 2010 14:41:24 +0000 (+0200) Subject: network: correct rules for multiple nics X-Git-Tag: 006~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ded2a65c0a925477589148f1ddacd62238e5cb4;p=thirdparty%2Fdracut-ng.git network: correct rules for multiple nics --- diff --git a/modules.d/40network/net-genrules.sh b/modules.d/40network/net-genrules.sh index fdb6ab67a..10d6ecd00 100755 --- a/modules.d/40network/net-genrules.sh +++ b/modules.d/40network/net-genrules.sh @@ -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