check ifenslave instead of brctl in parse-bond.sh
authorWANG Cong <xiyou.wangcong@gmail.com>
Fri, 18 May 2012 05:38:17 +0000 (13:38 +0800)
committerHarald Hoyer <harald@redhat.com>
Mon, 21 May 2012 09:11:11 +0000 (11:11 +0200)
This is obviously wrong, ifenslave instead of brctl is needed for bonding.

Cc: Harald Hoyer <harald@redhat.com>
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
modules.d/40network/parse-bond.sh

index 0a4c006..ae0ae97 100755 (executable)
@@ -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