aboutsummaryrefslogtreecommitdiffstats
path: root/package/netifd/files/lib/network/config.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-19 21:09:54 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-19 21:09:54 +0000
commit9b7e775c56e6aa099e9ff725af6a245fbca46492 (patch)
tree4aa7c3375dd5fb2740eb896725e1df95a3b9bd3b /package/netifd/files/lib/network/config.sh
parentc133369698e6fa693bfb3d827fb56a1d370dd6b8 (diff)
downloadmaster-187ad058-9b7e775c56e6aa099e9ff725af6a245fbca46492.tar.gz
master-187ad058-9b7e775c56e6aa099e9ff725af6a245fbca46492.tar.bz2
master-187ad058-9b7e775c56e6aa099e9ff725af6a245fbca46492.zip
netifd: scan l3 devices on find_config()
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31033 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/netifd/files/lib/network/config.sh')
-rwxr-xr-xpackage/netifd/files/lib/network/config.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/netifd/files/lib/network/config.sh b/package/netifd/files/lib/network/config.sh
index 8b91f96a6e..8fa9b1ac3d 100755
--- a/package/netifd/files/lib/network/config.sh
+++ b/package/netifd/files/lib/network/config.sh
@@ -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