Re: MT7621 Flow Control

2020-08-12 Thread Andre Valentin
Hello, it seems that I had another problem when upgrading from 4.14 to 5.4. In 4.14 network config I had no switch definition and it worked out of the box. But with 5.4 I need a switch config in network config like that: config interface 'lan' option type 'bridge' option ifname 'et

Controlling host routes via ubus / netifd

2020-08-12 Thread Michael Jones
Hi List. I am trying to control the routes on my OpenWRT system programmatically, and would like to know if this is possible to do via ubus and netifd. I've located the ubus target "ubus call network add_host_route '{"interface":"wan", "target":"1.0.0.0"}'" However, it does not seem to actually d

Notes on building OpenWrt on FreeBSD

2020-08-12 Thread Piotr P. Stefaniak
Hello, OpenWrt community! I happen to own multiple devices which run OpenWrt images configured and built by myself. The size of the build directory was getting significant for my Linux-running laptop so I wanted to move that to my NAS running FreeBSD stable/12 with ZFS. That's why I looked into r

Re: jsonfilter and queries with '-' in them

2020-08-12 Thread Michael Jones
Thanks. That works. Could you write a little bit about the underlying cause of this just so I can understand better? On Wed, Aug 12, 2020 at 3:59 PM Jo-Philipp Wich wrote: > > Hi, > > as already implied by Dirk, you need to use bracket notation for labels that > are not valid variable identifier

Re: jsonfilter and queries with '-' in them

2020-08-12 Thread Jo-Philipp Wich
Hi, as already implied by Dirk, you need to use bracket notation for labels that are not valid variable identifiers. So instead of `@.foo-bar` use `@["foo-bar"]`. ~ Jo signature.asc Description: OpenPGP digital signature ___ openwrt-devel mailing li

Re: jsonfilter and queries with '-' in them

2020-08-12 Thread Dirk Brenken
On Wed, 2020-08-12 at 14:20 -0500, Michael Jones wrote: > Hi List, > > I am trying to query netifd via ubus for the list of ipv4 ipaddresses > associated with an interface. > > Currently my query looks like > > ubus call network.interface.wan status | jsonfilter -e "@.ipv4- > address" > Syntax e

[PATCH v4] zram-swap: explicitely use mkswap/swapon/swapoff from /sbin

2020-08-12 Thread Rui Salvaterra
The required BusyBox applets are enabled by default, so we can rely on them being present in the system. This way, we make sure there are no conflicts with less featured variants of these same applets which might also be present in the system. Fixes: 0bd7dfa3ed60588ec83a8f60f48b6991ebb16940 Signe

jsonfilter and queries with '-' in them

2020-08-12 Thread Michael Jones
Hi List, I am trying to query netifd via ubus for the list of ipv4 ipaddresses associated with an interface. Currently my query looks like ubus call network.interface.wan status | jsonfilter -e "@.ipv4-address" Syntax error: Invalid escape sequence In expression @.ipv4-address Near here

buildbots/config.guess: error message written into command

2020-08-12 Thread Adrian Schmutzler
Hi, just looked at this occasional buildbot error again: http://buildbot.openwrt.org/master/images/builders/kirkwood%2Fgeneric/builds/495/steps/kmodconfig/logs/stdio Obviously, the error message about the missing /tmp directory is not just printed, but added as arguments to the sed command inst

RE: [PATCH] treewide: replace `which` with `command -v`

2020-08-12 Thread Adrian Schmutzler
> -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of Paul Spooren > Sent: Samstag, 8. August 2020 00:55 > To: openwrt-devel@lists.openwrt.org > Cc: Paul Spooren > Subject: [PATCH] treewide: replace `which` with `command -v` I've merged