#19116: "/lib/functions/network.sh; network_get_device" returns empty
----------------------+-----------------------------------
Reporter: n0nb@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Barrier Breaker 14.07
Keywords: |
----------------------+-----------------------------------
I ran into this when I was setting up
[http://wiki.openwrt.org/doc/howto/vnstat vnstat] on my Asus WL-500GP v2.
The recipe calls for running the following commands:
{{{
. /lib/functions/network.sh; network_get_device if_wan wan
vnstat -u -i $if_wan
}}}
However, doing so results in empty output which can be seen as:
{{{
root@wzh600dhp:~# . /lib/functions/network.sh; network_get_device if_wan
wan; echo $if_wan
root@wzh600dhp:~#
}}}
I have seen this exact behavior on two Barrier Breaker installations, one
an Asus WL-500GP v2 (brcm47xx) and the other a Buffalo WZR-600DHP (ar71xx)
so I suspect something had changed with the /lib/functions/network.sh
script.
For reference, this is a copy of a post in the forum to which I received
no replies:
https://forum.openwrt.org/viewtopic.php?id=56140
--
Ticket URL: <https://dev.openwrt.org/ticket/19116>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets