40network: check for brctl

if a bridge is configured on the kernel command line and brctl is
missing call die()
master
Harald Hoyer 2011-11-15 09:45:19 +01:00
parent 7e800bfffc
commit d00f97a7db
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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() {