fix error output of brctl if bridging is not supported.
[openwrt/svn-archive/archive.git] / package / base-files / files / lib / network / config.sh
index b7d7b259a94d21f0db272c1d530fc47b2e7616c3..e64198b7f69580056be1cb224215e0b35ff3a5f6 100755 (executable)
@@ -337,7 +337,7 @@ unbridge() {
        local brdev
 
        [ -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
 
                for brdev in $(brctl show | awk '$2 ~ /^[0-9].*\./ { print $1 }'); do