diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-19 21:09:54 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-19 21:09:54 +0000 |
commit | 6df99730c45d6f127b2f8b7ca2a6a46da374b52d (patch) | |
tree | bd072e8a329dcb084c897633eb47b916d845cdc3 /package | |
parent | 6a30a0d9928cf8a3f149c5134693d9eb258c3378 (diff) | |
download | upstream-6df99730c45d6f127b2f8b7ca2a6a46da374b52d.tar.gz upstream-6df99730c45d6f127b2f8b7ca2a6a46da374b52d.tar.bz2 upstream-6df99730c45d6f127b2f8b7ca2a6a46da374b52d.zip |
netifd: scan l3 devices on find_config()
SVN-Revision: 31033
Diffstat (limited to 'package')
-rwxr-xr-x | package/netifd/files/lib/network/config.sh | 3 |
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 |