[LEDE-DEV] the ipv6 issues and the notions of timer
Bastian Bittorf
bb at npl.de
Tue Jan 24 00:07:03 PST 2017
* Dave Taht <dave.taht at gmail.com> [24.01.2017 08:52]:
> I'd love a "simple ubus listen daemon example - one that listens
> merely for events on a set of interfaces. or routes or on a proto".
root at box:~ ubus listen
{ "network.interface": {"action":"ifdown","interface":"lan"} }
{ "network.interface": {"action":"ifup","interface":"lan"} }
> For all I know there's better tools for looking at ubus but my head
> spins from installing my post-eyeball json checker. I'd like to for
> example be checking that everything is always correctly formatted json
> passing through... is there a way to do that? While, like, um,
> hammering ubus?
. /usr/share/libubox/jshn.sh
MYJSON="$( devstatus eth0.2 )"
json_load "$MYJSON" || something_is_wrong
json_cleanup
bye, bastian
More information about the Lede-dev
mailing list