netifd: scan l3 devices on find_config()
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 19 Mar 2012 21:09:54 +0000 (21:09 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 19 Mar 2012 21:09:54 +0000 (21:09 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31033 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/netifd/files/lib/network/config.sh

index 8b91f96..8fa9b1a 100755 (executable)
@@ -10,7 +10,8 @@ find_config() {
                (
                        json_load "$(ifstatus $interface)"
                        json_get_var ifdev device
-                       if [[ "$device" = "$ifdev" ]]; then
+                       json_get_var ifl3dev l3_device
+                       if [[ "$device" = "$ifdev" ]] || [[ "$device" = "$ifl3dev" ]]; then
                                echo "$interface"
                                exit 0
                        else