|
|
@ -61,7 +61,7 @@ append_conf_params() { |
|
|
|
for v in $v; do |
|
|
|
# Look up OpenWRT interface names |
|
|
|
[ "$p" = "BindToInterface" ] && { |
|
|
|
local ifname=$(uci -P /var/state get network.$v.ifname 2>&-) |
|
|
|
local ifname=$(uci_get_state network "$v" ifname "") |
|
|
|
[ -n "$ifname" ] && v="$ifname" |
|
|
|
} |
|
|
|
|
|
|
|