]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network/net-genrules.sh: remove some bashisms
authorHarald Hoyer <harald@redhat.com>
Wed, 30 Jan 2013 16:22:25 +0000 (17:22 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 30 Jan 2013 16:22:25 +0000 (17:22 +0100)
modules.d/40network/net-genrules.sh

index 133c457c15b0ce45fa979471580c4d7dffa6665a..f4652b904d274f6627b4fbee95ec61fbf43998a7 100755 (executable)
@@ -24,24 +24,24 @@ fi
     # bridge: attempt only the defined interface
     if [ -e /tmp/bridge.info ]; then
         . /tmp/bridge.info
-        IFACES+=" ${ethnames%% *}"
+        IFACES="$IFACES ${ethnames%% *}"
     fi
 
     # bond: attempt only the defined interface (override bridge defines)
     if [ -e /tmp/bond.info ]; then
         . /tmp/bond.info
         # It is enough to fire up only one
-        IFACES+=" ${bondslaves%% *}"
+        IFACES="$IFACES ${bondslaves%% *}"
     fi
 
     if [ -e /tmp/team.info ]; then
         . /tmp/team.info
-        IFACES+=" ${teamslaves}"
+        IFACES="$IFACES ${teamslaves}"
     fi
 
     if [ -e /tmp/vlan.info ]; then
         . /tmp/vlan.info
-        IFACES+=" $phydevice"
+        IFACES="$IFACES $phydevice"
     fi
 
     if [ -z "$IFACES" ]; then