On Sat, Mar 1, 2014 at 4:25 AM, Hannu Nyman <hannu.ny...@iki.fi> wrote:
> Should that line be instead this way?
>
>       [ -n "${Interface}" ] && network_get_device interface "${Interface}"
I think the only place where "interface" is used is on the following line:
-       append_ports "${interface}" "${Port}"
+       append_ports "${Interface}" "${Port}"

So as long as the append ports uses the same capitalization, it should
work. Plus Interface (capital) is declared as a local variable, so
that limits the effect of network_get_device (does not set any global
variables). And it seemed reasonable to replace the original value of
Interface (capital) since it is no longer needed.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to