netifd: scan l3 devices on find_config()

SVN-Revision: 31033
lede-17.01
Felix Fietkau 2012-03-19 21:09:54 +00:00
parent 6a30a0d992
commit 6df99730c4
1 changed files with 2 additions and 1 deletions

View File

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