]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
40network: check for brctl
authorHarald Hoyer <harald@redhat.com>
Tue, 15 Nov 2011 08:45:19 +0000 (09:45 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 15 Nov 2011 08:47:29 +0000 (09:47 +0100)
if a bridge is configured on the kernel command line and brctl is
missing call die()

modules.d/40network/parse-bond.sh
modules.d/40network/parse-bridge.sh

index 903a800bdc5225b7b785cb1cb56ca7088e928273..0a4c0060205d71c771f8c9f552062ec141af5c9c 100755 (executable)
@@ -18,6 +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"
 fi
 
 # We translate list of slaves to space-separated here to mwke it easier to loop over them in ifup
index b2d178879bbd0fe0cfe55c01ed1bf02beb19ecc5..aaa5a547eea8618d9c54002c275691522b6ceb31 100755 (executable)
@@ -16,6 +16,7 @@ if getarg bridge= >/dev/null ; then
     if [ -z "$netroot" ] ; then
         die "No netboot configured, bridge is invalid"
     fi
+    command -v brctl >/dev/null 2>&1 || die "No 'brctl' installed" 
 fi
 
 parsebridge() {