From d00f97a7db8c92ca33dd93f08813a40db99cef1c Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 15 Nov 2011 09:45:19 +0100 Subject: [PATCH] 40network: check for brctl if a bridge is configured on the kernel command line and brctl is missing call die() --- modules.d/40network/parse-bond.sh | 1 + modules.d/40network/parse-bridge.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/modules.d/40network/parse-bond.sh b/modules.d/40network/parse-bond.sh index 903a800..0a4c006 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 b2d1788..aaa5a54 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() { -- 2.7.4