[OpenWrt-Devel] /var/state/wireless not being updated any more?

Weedy weedy2887 at gmail.com
Mon Jun 16 15:17:24 EDT 2014


On Thu, Jun 12, 2014 at 8:28 PM, Gui Iribarren <gui at 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20140616/3c9bbe43/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list