mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
netifd: scan l3 devices on find_config()
SVN-Revision: 31033
This commit is contained in:
parent
6a30a0d992
commit
6df99730c4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user