fix error output of brctl if bridging is not supported.

The following error is displayed during network configuration on any device that has DEVICE_TYPE set to something else then router, or has brctl functionality disabled through some other method:

"brctl: SIOCGIFBR: Package not installed"

This is due to the unbridge function being called, which uses "brctl show" to determine if the interface is bridged.

Signed-off-by: Ithamar R. Adema <ithamar.adema@team-embedded.nl>

SVN-Revision: 20218
owl
Felix Fietkau 2010-03-14 21:10:07 +00:00
parent d58bf6adba
commit 73f61a64eb
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ unbridge() {
local brdev local brdev
[ -x /usr/sbin/brctl ] || return 0 [ -x /usr/sbin/brctl ] || return 0
brctl show | grep "$dev" >/dev/null && { brctl show 2>/dev/null | grep "$dev" >/dev/null && {
# interface is still part of a bridge, correct that # interface is still part of a bridge, correct that
for brdev in $(brctl show | awk '$2 ~ /^[0-9].*\./ { print $1 }'); do for brdev in $(brctl show | awk '$2 ~ /^[0-9].*\./ { print $1 }'); do