On Thu, Jun 12, 2014 at 8:28 PM, Gui Iribarren <g...@altermundi.net> wrote:

> On 06/12/2014 09:13 PM, Shankar Unni wrote:
> > Ping?
> >
> > How can I look up the current state of the various wireless interfaces
> using "uci" now?
> >
>
> http://wiki.openwrt.org/doc/uci/network#determining.linux.interface.names
>
> The uci state vars are deprecated and not used anymore for network
> related information Quoting jow in the forum[0]
> Use /lib/functions/network.sh:
>
>     source /lib/functions/network.sh
>
>     if network_get_ipaddr addr "wan"; then
>         echo "IP is $addr"
>     fi
>

Is this cached or refreshed every call?
Can the IP/interface change in between network_get_ calls and I get stale
data?
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to