[PATCH] base-files: simplify setting device MAC
    Jo-Philipp Wich 
    jo at mein.io
       
    Tue Jun  1 05:13:13 PDT 2021
    
    
  
Hi,
> Ideally you should be able to use jsonfilter too but I don't know how to
> deal with "-" in a property name.
Use bracket notation.
> Following doesn't work for me:
> 
> ubus call network.device status '{ "name": "br-lan" }' | jsonfilter -e
> "$.bridge-members"
ubus call network.device status '{ "name": "br-lan" }' | jsonfilter -e
> "$['bridge-members']"
~ Jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20210601/cbb5bb60/attachment-0001.sig>
    
    
More information about the openwrt-devel
mailing list