|
@@ -5,6 +5,7 @@
|
|
|
|
|
|
|
|
find_config() {
|
|
find_config() {
|
|
|
local device="$1"
|
|
local device="$1"
|
|
|
|
|
+ local ifdev ifl3dev ifobj
|
|
|
for ifobj in `ubus list network.interface.\*`; do
|
|
for ifobj in `ubus list network.interface.\*`; do
|
|
|
interface="${ifobj##network.interface.}"
|
|
interface="${ifobj##network.interface.}"
|
|
|
(
|
|
(
|
|
@@ -36,7 +37,7 @@ ubus_call() {
|
|
|
|
|
|
|
|
fixup_interface() {
|
|
fixup_interface() {
|
|
|
local config="$1"
|
|
local config="$1"
|
|
|
- local ifname type
|
|
|
|
|
|
|
+ local ifname type device l3dev
|
|
|
|
|
|
|
|
config_get type "$config" type
|
|
config_get type "$config" type
|
|
|
config_get ifname "$config" ifname
|
|
config_get ifname "$config" ifname
|