more wpa+wds patches
[openwrt/svn-archive/archive.git] / package / base-files / files / lib / network / config.sh
index c08fd69bc8f615dc2040919a6fb6816eb86ee21f..c384b3e142124238a5b60295c4418fb2aab396d2 100755 (executable)
@@ -91,7 +91,6 @@ prepare_interface() {
        case "$iftype" in
                bridge)
                        [ -x /usr/sbin/brctl ] && {
-                               ifconfig "$iface" up 2>/dev/null >/dev/null
                                ifconfig "br-$config" 2>/dev/null >/dev/null && {
                                        $DEBUG brctl addif "br-$config" "$iface"
                                        # Bridge existed already. No further processing necesary
@@ -104,6 +103,7 @@ prepare_interface() {
                                        # result in another setup_interface() call, so we simply stop processing
                                        # the current event at this point.
                                }
+                               ifconfig "$iface" up 2>/dev/null >/dev/null
                                return 1
                        }
                ;;