From: Harald Hoyer Date: Tue, 15 Nov 2011 08:45:19 +0000 (+0100) Subject: 40network: check for brctl X-Git-Tag: 014~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d00f97a7db8c92ca33dd93f08813a40db99cef1c;p=thirdparty%2Fdracut.git 40network: check for brctl if a bridge is configured on the kernel command line and brctl is missing call die() --- diff --git a/modules.d/40network/parse-bond.sh b/modules.d/40network/parse-bond.sh index 903a800bd..0a4c00602 100755 --- a/modules.d/40network/parse-bond.sh +++ b/modules.d/40network/parse-bond.sh @@ -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 diff --git a/modules.d/40network/parse-bridge.sh b/modules.d/40network/parse-bridge.sh index b2d178879..aaa5a547e 100755 --- a/modules.d/40network/parse-bridge.sh +++ b/modules.d/40network/parse-bridge.sh @@ -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() {