add a check for brctl in the unbridge() function (fixes #1417)
authorFelix Fietkau <nbd@openwrt.org>
Tue, 27 Feb 2007 23:34:14 +0000 (23:34 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 27 Feb 2007 23:34:14 +0000 (23:34 +0000)
SVN-Revision: 6410

package/base-files/files/lib/network/config.sh

index 2b1574937bdec62f40bf6d314d10b3c278fc326d..95954bf15acd1621c5606fafc556ea2102d8d5c7 100755 (executable)
@@ -195,7 +195,8 @@ setup_interface() {
 unbridge() {
        local dev="$1"
        local brdev
-
+       
+       [ -x /usr/sbin/brctl ] || return 0
        brctl show | grep "$dev" >/dev/null && {
                # interface is still part of a bridge, correct that