<div dir="ltr">On Thu, Jun 12, 2014 at 8:28 PM, Gui Iribarren <span dir="ltr"><<a href="mailto:gui@altermundi.net" target="_blank">gui@altermundi.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">On 06/12/2014 09:13 PM, Shankar Unni wrote:<br>
> Ping?<br>
><br>
> How can I look up the current state of the various wireless interfaces using "uci" now?<br>
><br>
<br>
</div><a href="http://wiki.openwrt.org/doc/uci/network#determining.linux.interface.names" target="_blank">http://wiki.openwrt.org/doc/uci/network#determining.linux.interface.names</a><br>
<br>
The uci state vars are deprecated and not used anymore for network<br>
related information Quoting jow in the forum[0]<br>
Use /lib/functions/network.sh:<br>
<br>
source /lib/functions/network.sh<br>
<br>
if network_get_ipaddr addr "wan"; then<br>
echo "IP is $addr"<br>
fi<br></blockquote><div><br>Is this cached or refreshed every call?<br></div><div>Can the IP/interface change in between network_get_ calls and I get stale data?<br></div><div> </div></div><br></div></div>