Skip to contentSkip to conversation

check ifenslave instead of brctl in parse-bond.sh

PATCH New Cong Wang 1 participant 1 message May 18, 2012

lore
Share & tools
lore

Cong Wang

author
#0 lore raw

PATCH 1/1 check ifenslave instead of brctl in parse-bond.sh

From: WANG Cong <[email protected]>

This is obviously wrong, ifenslave instead of brctl is needed for bonding.

Cc Harald Hoyer <[email protected]>

---

modules.d/40network/parse-bond.sh +1 -1
index 0a4c006..ae0ae97 100755
@@ -18,7 +18,7 @@ if getarg bond= >/dev/null ; then
     if [ -z "$netroot" ] ; then
         die "No netboot configured, bond is invalid"
     fi
-    command -v brctl >/dev/null 2>&1 || die "No 'brctl' installed"
+    command -v ifenslave >/dev/null 2>&1 || die "No 'ifenslave' installed"
 fi
 
 # We translate list of slaves to space-separated here to mwke it easier to loop over them in ifup