MaxSoniX has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
<hgl> philipp64: any chance getting the strongswan PR merged?
tSYS has quit [Quit: *squeak*]
tSYS has joined #openwrt-devel
minimal has quit [Quit: Leaving]
schwicht has joined #openwrt-devel
Lynx- has joined #openwrt-devel
Lynx- has quit [Ping timeout: 480 seconds]
schwicht has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ptudor_ has quit [Ping timeout: 480 seconds]
cbeznea has joined #openwrt-devel
ptudor has joined #openwrt-devel
danitool has quit [Quit: Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos]
<KGB-1> https://tests.reproducible-builds.org/openwrt/openwrt_omap.html has been updated. (11.1% images and 99.9% packages reproducible in our current test framework.)
bookworm has quit []
MaxSoniX has quit [Quit: Konversation terminated!]
Tapper has joined #openwrt-devel
robimarko has joined #openwrt-devel
cmonroe_ has quit [Read error: Connection reset by peer]
cmonroe has joined #openwrt-devel
tidalf has quit [Ping timeout: 480 seconds]
gladiac has joined #openwrt-devel
gladiac has quit [Quit: k thx bye]
gladiac has joined #openwrt-devel
gladiac has quit []
tidalf has joined #openwrt-devel
bluew has quit [Ping timeout: 480 seconds]
eloy_ has quit [Quit: eloy_]
eloy_ has joined #openwrt-devel
cbeznea1 has joined #openwrt-devel
cbeznea has quit [Ping timeout: 480 seconds]
cbeznea1 has quit [Ping timeout: 480 seconds]
cmonroe has quit [resistance.oftc.net reflection.oftc.net]
fakuivan has quit [resistance.oftc.net reflection.oftc.net]
hanetzer has quit [resistance.oftc.net reflection.oftc.net]
philipp64 has quit [resistance.oftc.net reflection.oftc.net]
hgl has quit [resistance.oftc.net reflection.oftc.net]
soxrok2212 has quit [resistance.oftc.net reflection.oftc.net]
Snuupy has quit [resistance.oftc.net reflection.oftc.net]
hurricos has quit [resistance.oftc.net reflection.oftc.net]
Harm_ has quit [resistance.oftc.net reflection.oftc.net]
zer0def has quit [resistance.oftc.net reflection.oftc.net]
chder has quit [resistance.oftc.net reflection.oftc.net]
eloy_ has quit [resistance.oftc.net charon.oftc.net]
tSYS has quit [resistance.oftc.net charon.oftc.net]
djfe has quit [resistance.oftc.net charon.oftc.net]
dgcampea has quit [resistance.oftc.net reflection.oftc.net]
felix has quit [resistance.oftc.net reflection.oftc.net]
rua has quit [resistance.oftc.net charon.oftc.net]
romany047 has quit [resistance.oftc.net charon.oftc.net]
slh has quit [resistance.oftc.net charon.oftc.net]
Misanthropos has quit [resistance.oftc.net charon.oftc.net]
c0xc__ has quit [resistance.oftc.net charon.oftc.net]
Ansuel has quit [resistance.oftc.net charon.oftc.net]
karlp has quit [resistance.oftc.net charon.oftc.net]
lucenera has quit [resistance.oftc.net charon.oftc.net]
FLD has quit [resistance.oftc.net charon.oftc.net]
wvdakker has quit [resistance.oftc.net charon.oftc.net]
DLange has quit [resistance.oftc.net charon.oftc.net]
tom- has quit [resistance.oftc.net charon.oftc.net]
Obi-Wan has quit [resistance.oftc.net charon.oftc.net]
zatwai_ has quit [resistance.oftc.net charon.oftc.net]
shoragan has quit [resistance.oftc.net charon.oftc.net]
rmb has quit [resistance.oftc.net charon.oftc.net]
danieli has quit [resistance.oftc.net charon.oftc.net]
paper__ has quit [resistance.oftc.net charon.oftc.net]
stintel has quit [resistance.oftc.net charon.oftc.net]
zkrx has quit [resistance.oftc.net charon.oftc.net]
enyc has quit [resistance.oftc.net charon.oftc.net]
fieryeagle954[m] has quit [resistance.oftc.net charon.oftc.net]
barhom has quit [resistance.oftc.net charon.oftc.net]
whatevs111[m] has quit [resistance.oftc.net charon.oftc.net]
pavlix has quit [resistance.oftc.net charon.oftc.net]
gnustomp[m] has quit [resistance.oftc.net charon.oftc.net]
hexagonwin[m] has quit [resistance.oftc.net charon.oftc.net]
lemoer_ has quit [resistance.oftc.net charon.oftc.net]
lynxis has quit [resistance.oftc.net charon.oftc.net]
zorun has quit [resistance.oftc.net charon.oftc.net]
swegener has quit [resistance.oftc.net charon.oftc.net]
ukleinek has quit [resistance.oftc.net charon.oftc.net]
paper_ has quit [resistance.oftc.net charon.oftc.net]
tidalf has quit [resistance.oftc.net charon.oftc.net]
robimarko has quit [resistance.oftc.net charon.oftc.net]
Tapper has quit [resistance.oftc.net charon.oftc.net]
PtitGNU has quit [resistance.oftc.net charon.oftc.net]
guifipedro has quit [resistance.oftc.net charon.oftc.net]
nixuser has quit [resistance.oftc.net charon.oftc.net]
f00b4r0 has quit [resistance.oftc.net charon.oftc.net]
xutaxkamay has quit [resistance.oftc.net charon.oftc.net]
mrkiko has quit [resistance.oftc.net charon.oftc.net]
rsalvaterra has quit [resistance.oftc.net charon.oftc.net]
maciekb has quit [resistance.oftc.net charon.oftc.net]
slh64 has quit [resistance.oftc.net charon.oftc.net]
KGB-0 has quit [resistance.oftc.net charon.oftc.net]
Lechu has quit [resistance.oftc.net charon.oftc.net]
SirLouen has quit [resistance.oftc.net charon.oftc.net]
clandmeter has quit [resistance.oftc.net charon.oftc.net]
owrt-snap-builds has quit [resistance.oftc.net charon.oftc.net]
xes has quit [resistance.oftc.net charon.oftc.net]
wigyori has quit [resistance.oftc.net charon.oftc.net]
noltari has quit [resistance.oftc.net charon.oftc.net]
indy has quit [resistance.oftc.net charon.oftc.net]
MatMaul[m]1 has quit [resistance.oftc.net charon.oftc.net]
domon has quit [resistance.oftc.net charon.oftc.net]
lipnitsk has quit [resistance.oftc.net charon.oftc.net]
decke[m] has quit [resistance.oftc.net charon.oftc.net]
evils[m] has quit [resistance.oftc.net charon.oftc.net]
olmari has quit [resistance.oftc.net charon.oftc.net]
oliv3r[m] has quit [resistance.oftc.net charon.oftc.net]
JulianGro[m] has quit [resistance.oftc.net charon.oftc.net]
mkg20001 has quit [resistance.oftc.net charon.oftc.net]
blocktrron has quit [resistance.oftc.net charon.oftc.net]
StifflersMagic has quit [resistance.oftc.net charon.oftc.net]
owrt-2203-builds has quit [resistance.oftc.net charon.oftc.net]
SwedeMike has quit [resistance.oftc.net charon.oftc.net]
larsc has quit [resistance.oftc.net charon.oftc.net]
nbd has quit [resistance.oftc.net charon.oftc.net]
\x has quit [resistance.oftc.net charon.oftc.net]
g___ has quit [resistance.oftc.net charon.oftc.net]
kabel has quit [resistance.oftc.net charon.oftc.net]
lemmi has quit [resistance.oftc.net charon.oftc.net]
f12 has quit [resistance.oftc.net charon.oftc.net]
ynezz has quit [resistance.oftc.net charon.oftc.net]
ahf has quit [resistance.oftc.net charon.oftc.net]
aiyion has quit [resistance.oftc.net charon.oftc.net]
hbug has quit [resistance.oftc.net charon.oftc.net]
floof58 has quit [resistance.oftc.net charon.oftc.net]
niyawe has quit [resistance.oftc.net charon.oftc.net]
bbezak has quit [resistance.oftc.net charon.oftc.net]
tomn has quit [resistance.oftc.net charon.oftc.net]
sorinello has quit [resistance.oftc.net charon.oftc.net]
rmilecki has quit [resistance.oftc.net charon.oftc.net]
jow_ has quit [resistance.oftc.net charon.oftc.net]
KGB-2 has quit [resistance.oftc.net charon.oftc.net]
guerby_ has quit [resistance.oftc.net charon.oftc.net]
Christophe[m]1 has quit [resistance.oftc.net charon.oftc.net]
zarzarzar has quit [resistance.oftc.net charon.oftc.net]
hexa- has quit [resistance.oftc.net charon.oftc.net]
takimata has quit [resistance.oftc.net charon.oftc.net]
tmn505 has quit [resistance.oftc.net charon.oftc.net]
nick[m]1234 has quit [resistance.oftc.net charon.oftc.net]
fpsusername[m] has quit [resistance.oftc.net charon.oftc.net]
bluse-blue[m] has quit [resistance.oftc.net charon.oftc.net]
skorpy[m] has quit [resistance.oftc.net charon.oftc.net]
hauke[m] has quit [resistance.oftc.net charon.oftc.net]
znullptr[m] has quit [resistance.oftc.net charon.oftc.net]
JuniorJPDJ has quit [resistance.oftc.net charon.oftc.net]
ctdvqgg445[m] has quit [resistance.oftc.net charon.oftc.net]
tohojo has quit [resistance.oftc.net charon.oftc.net]
_lore_ has quit [resistance.oftc.net charon.oftc.net]
Znevna has quit [resistance.oftc.net charon.oftc.net]
owrt-2102-builds has quit [resistance.oftc.net charon.oftc.net]
El_Loco has quit [resistance.oftc.net charon.oftc.net]
AndyCap has quit [resistance.oftc.net charon.oftc.net]
rotanid has quit [resistance.oftc.net charon.oftc.net]
omni has quit [resistance.oftc.net charon.oftc.net]
ldir has quit [resistance.oftc.net charon.oftc.net]
torv has quit [resistance.oftc.net charon.oftc.net]
guidosarducci has quit [resistance.oftc.net charon.oftc.net]
Larhzu has quit [resistance.oftc.net charon.oftc.net]
GNUmoon has quit [resistance.oftc.net charon.oftc.net]
mva_ has quit [resistance.oftc.net charon.oftc.net]
PaulFertser has quit [resistance.oftc.net charon.oftc.net]
mkresin has quit [resistance.oftc.net charon.oftc.net]
svanheule has quit [resistance.oftc.net charon.oftc.net]
aparcar[m] has quit [resistance.oftc.net charon.oftc.net]
will[m] has quit [resistance.oftc.net charon.oftc.net]
schmars[m] has quit [resistance.oftc.net charon.oftc.net]
John[m]12345 has quit [resistance.oftc.net charon.oftc.net]
PJin[m] has quit [resistance.oftc.net charon.oftc.net]
vulpes2[m] has quit [resistance.oftc.net charon.oftc.net]
embargo has quit [resistance.oftc.net charon.oftc.net]
[Pokey] has quit [resistance.oftc.net charon.oftc.net]
[florian] has quit [resistance.oftc.net charon.oftc.net]
EqUaTe has quit [resistance.oftc.net charon.oftc.net]
cc0 has quit [resistance.oftc.net charon.oftc.net]
mirko_ has quit [resistance.oftc.net charon.oftc.net]
gtk2 has quit [resistance.oftc.net charon.oftc.net]
xdarklight has quit [resistance.oftc.net charon.oftc.net]
KGB-1 has quit [resistance.oftc.net charon.oftc.net]
Sagi has quit [resistance.oftc.net charon.oftc.net]
dhewg has quit [resistance.oftc.net charon.oftc.net]
ryd has quit [resistance.oftc.net charon.oftc.net]
pkgadd_ has quit [resistance.oftc.net charon.oftc.net]
fblaese_ has quit [resistance.oftc.net charon.oftc.net]
neoraider has quit [resistance.oftc.net charon.oftc.net]
drikus_ has quit [resistance.oftc.net charon.oftc.net]
hauke has quit [resistance.oftc.net charon.oftc.net]
blogic has quit [resistance.oftc.net charon.oftc.net]
eloy_ has joined #openwrt-devel
rua has joined #openwrt-devel
floof58 has joined #openwrt-devel
aiyion has joined #openwrt-devel
rsalvaterra has joined #openwrt-devel
niyawe has joined #openwrt-devel
lucenera has joined #openwrt-devel
tomn has joined #openwrt-devel
bbezak has joined #openwrt-devel
Larhzu has joined #openwrt-devel
guifipedro has joined #openwrt-devel
nixuser has joined #openwrt-devel
sorinello has joined #openwrt-devel
f00b4r0 has joined #openwrt-devel
rmilecki has joined #openwrt-devel
xutaxkamay has joined #openwrt-devel
FLD has joined #openwrt-devel
GNUmoon has joined #openwrt-devel
mrkiko has joined #openwrt-devel
mva_ has joined #openwrt-devel
tmn505 has joined #openwrt-devel
DLange has joined #openwrt-devel
wvdakker has joined #openwrt-devel
jow_ has joined #openwrt-devel
PaulFertser has joined #openwrt-devel
Obi-Wan has joined #openwrt-devel
tom- has joined #openwrt-devel
KGB-0 has joined #openwrt-devel
zatwai_ has joined #openwrt-devel
shoragan has joined #openwrt-devel
KGB-2 has joined #openwrt-devel
rmb has joined #openwrt-devel
Lechu has joined #openwrt-devel
SirLouen has joined #openwrt-devel
guerby_ has joined #openwrt-devel
danieli has joined #openwrt-devel
zarzarzar has joined #openwrt-devel
Christophe[m]1 has joined #openwrt-devel
clandmeter has joined #openwrt-devel
PJin[m] has joined #openwrt-devel
paper__ has joined #openwrt-devel
xes has joined #openwrt-devel
owrt-snap-builds has joined #openwrt-devel
wigyori has joined #openwrt-devel
hexa- has joined #openwrt-devel
noltari has joined #openwrt-devel
stintel has joined #openwrt-devel
enyc has joined #openwrt-devel
zkrx has joined #openwrt-devel
indy has joined #openwrt-devel
takimata has joined #openwrt-devel
svanheule has joined #openwrt-devel
mkresin has joined #openwrt-devel
whatevs111[m] has joined #openwrt-devel
will[m] has joined #openwrt-devel
vulpes2[m] has joined #openwrt-devel
schmars[m] has joined #openwrt-devel
skorpy[m] has joined #openwrt-devel
olmari has joined #openwrt-devel
pavlix has joined #openwrt-devel
nick[m]1234 has joined #openwrt-devel
oliv3r[m] has joined #openwrt-devel
MatMaul[m]1 has joined #openwrt-devel
mkg20001 has joined #openwrt-devel
JuniorJPDJ has joined #openwrt-devel
lipnitsk has joined #openwrt-devel
JulianGro[m] has joined #openwrt-devel
John[m]12345 has joined #openwrt-devel
hexagonwin[m] has joined #openwrt-devel
hauke[m] has joined #openwrt-devel
gnustomp[m] has joined #openwrt-devel
fpsusername[m] has joined #openwrt-devel
fieryeagle954[m] has joined #openwrt-devel
evils[m] has joined #openwrt-devel
domon has joined #openwrt-devel
decke[m] has joined #openwrt-devel
ctdvqgg445[m] has joined #openwrt-devel
bluse-blue[m] has joined #openwrt-devel
barhom has joined #openwrt-devel
lemoer_ has joined #openwrt-devel
lynxis has joined #openwrt-devel
_lore_ has joined #openwrt-devel
Znevna has joined #openwrt-devel
zorun has joined #openwrt-devel
owrt-2203-builds has joined #openwrt-devel
owrt-2102-builds has joined #openwrt-devel
blocktrron has joined #openwrt-devel
swegener has joined #openwrt-devel
El_Loco has joined #openwrt-devel
embargo has joined #openwrt-devel
ukleinek has joined #openwrt-devel
StifflersMagic has joined #openwrt-devel
f12 has joined #openwrt-devel
SwedeMike has joined #openwrt-devel
larsc has joined #openwrt-devel
nbd has joined #openwrt-devel
\x has joined #openwrt-devel
kabel has joined #openwrt-devel
ynezz has joined #openwrt-devel
ahf has joined #openwrt-devel
g___ has joined #openwrt-devel
lemmi has joined #openwrt-devel
AndyCap has joined #openwrt-devel
rotanid has joined #openwrt-devel
paper_ has joined #openwrt-devel
omni has joined #openwrt-devel
[Pokey] has joined #openwrt-devel
[florian] has joined #openwrt-devel
EqUaTe has joined #openwrt-devel
cc0 has joined #openwrt-devel
mirko_ has joined #openwrt-devel
gtk2 has joined #openwrt-devel
xdarklight has joined #openwrt-devel
KGB-1 has joined #openwrt-devel
ldir has joined #openwrt-devel
Sagi has joined #openwrt-devel
dhewg has joined #openwrt-devel
ryd has joined #openwrt-devel
pkgadd_ has joined #openwrt-devel
fblaese_ has joined #openwrt-devel
neoraider has joined #openwrt-devel
drikus_ has joined #openwrt-devel
hauke has joined #openwrt-devel
blogic has joined #openwrt-devel
robimarko has joined #openwrt-devel
tSYS has joined #openwrt-devel
tidalf has joined #openwrt-devel
Tapper has joined #openwrt-devel
hbug has joined #openwrt-devel
djfe has joined #openwrt-devel
romany047 has joined #openwrt-devel
PtitGNU has joined #openwrt-devel
torv has joined #openwrt-devel
guidosarducci has joined #openwrt-devel
slh64 has joined #openwrt-devel
maciekb has joined #openwrt-devel
slh has joined #openwrt-devel
c0xc__ has joined #openwrt-devel
karlp has joined #openwrt-devel
Misanthropos has joined #openwrt-devel
Ansuel has joined #openwrt-devel
znullptr[m] has joined #openwrt-devel
tohojo has joined #openwrt-devel
aparcar[m] has joined #openwrt-devel
tidalf_ has joined #openwrt-devel
cmonroe has joined #openwrt-devel
fakuivan has joined #openwrt-devel
dgcampea has joined #openwrt-devel
chder has joined #openwrt-devel
philipp64 has joined #openwrt-devel
hgl has joined #openwrt-devel
felix has joined #openwrt-devel
Snuupy has joined #openwrt-devel
Harm_ has joined #openwrt-devel
hurricos has joined #openwrt-devel
zer0def has joined #openwrt-devel
hanetzer has joined #openwrt-devel
soxrok2212 has joined #openwrt-devel
tidalf__ has joined #openwrt-devel
tidalf__ has quit []
tlj_ has joined #openwrt-devel
cbeznea has joined #openwrt-devel
danitool has joined #openwrt-devel
tlj has quit [Ping timeout: 480 seconds]
tidalf__ has joined #openwrt-devel
tidalf has quit [Ping timeout: 480 seconds]
tidalf_ has quit [Ping timeout: 480 seconds]
fakuivan_ has joined #openwrt-devel
fakuivan has quit [Remote host closed the connection]
cbeznea has quit [Read error: Connection reset by peer]
tidalf__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tidalf has joined #openwrt-devel
cbeznea has joined #openwrt-devel
goliath has joined #openwrt-devel
tidalf has quit []
tidalf has joined #openwrt-devel
tidalf has quit []
tidalf has joined #openwrt-devel
AtomiclyCursed has quit [Quit: ZNC 1.8.2 - https://znc.in]
AtomiclyCursed has joined #openwrt-devel
tidalf has quit []
<hgl> jow_: thoughts on this PR? https://github.com/openwrt/openwrt/pull/12496
maciekb has quit [Read error: Connection reset by peer]
maciekb has joined #openwrt-devel
<jow_> hgl: I don't see the usefulness
<jow_> hgl: you stil lrequire a callback
<jow_> hgl: you still call config_foreach under the hood
<jow_> hgl: why not do the set operations directly inside the config_foreach callback and simply return 1 to stop the iteration afterwards?
<jow_> hgl: your example would become: https://pastebin.com/fY33NFiC
<jow_> it's even shorter
<jow_> if you need higher level logic, consider using the rpc uci api
<hgl> jow_: hmm, you can return early with just config_foreach? doesn't it only use eval and the return status won't prevent "for" from continuing to loop?
<jow_> ubus call uci set '{ "config": "network", "type": "device", "match": { "device": "br-lan" }, "values": { "foo": "bar", "baz": [ "one", "two", "three" ] } }'
<hgl> wow, didn't know I could do this.
<stintel> Ansuel: would it be a lot of work to add a summary to the channel analysis page that says the number of networks found? or number the networks alternatively?
<hgl> jow_: is this documented anywhere?
<jow_> hgl: ah yes, I misremembered the early abort, this baheaviour is present in the Lua and ucode bindings, not the shell API
<jow_> it will always loop all sections
<jow_> the overhead is neglectible though (unless you perform expensive work in the callback *before* checking the section it's invoked for)
<hgl> sometimes there are multiple matches and you might want the first
<hgl> in this case return early could help
<jow_> true. I fear that changing it now could be problematic though
<jow_> since the return value will be the implict result of the last expression in the function
<jow_> and there might be existing, working code resulting in a callback return value != 0
<hgl> yeah, so i used a different function name, config_find, shouldn't affect existing code
<hgl> the rpc api is really cool though
djfe_ has joined #openwrt-devel
maciekb has quit [Read error: Connection reset by peer]
maciekb has joined #openwrt-devel
<hgl> jow_: do you happen to know which file contains the source for operator like "match" that I can find the rest supported operators?
<hgl> i skimmed ubus and uci's source code, couldn't surface any
djfe has quit [Ping timeout: 480 seconds]
<hgl> jow_: and is it still a no from you for config_find?
<hgl> i'll check it out, thanks
<rmilecki> does procd have trigger for another service reload?
<rmilecki> i would like to reload wsdd2 every time ksmbd gets reloaded
<rmilecki> so wsdd2 can get automatically stopped after ksmbd stops
<rmilecki> or started after ksmbd start
<hgl> jow_: I tried ubus call uci set '{ "config": "network", "type": "device", "match": { "name": "br-lan" }, "values": { "foo": "bar" } }'
<hgl> doesn't see to set foo to bar in /etc/config/network
<f00b4r0> jow_: silly question, I'm learning ucode. I'm loading a config section with uci.get_all() and when I try to print it out, the resulting dictionary is cut (i.e. output stops without proper object termination) at the first "list" element, is this expected?
* f00b4r0 is most likely doing something stupid
<f00b4r0> hmm scratch that, it seems I was just exhausting some buffer
<jow_> hgl: you might need to call `ubus call uci commit '{ "config": "network" }'`
<jow_> hgl: otherwise the changes are just staged
<jow_> like after "uci set" on the cli
<jow_> f00b4r0: no, not expected, it should always (try to) print the entire JSON data
<hgl> jow_: oh, i see. yeah it works now
schwicht has joined #openwrt-devel
<hgl> jow_: one more quick question, does ucode have ip manipulation functions?
<jow_> hgl: no, just iptoarr() & arrtoip()
<hgl> like returning the second IP address from a cidr
<jow_> but you could port the old Lua IP calc library: https://github.com/ThingMesh/openwrt-luci/blob/master/libs/core/luasrc/ip.lua
<jow_> iptoarr() will give you an array of decimals
<jow_> iptoarr("10.12.13.14") -> [ 10, 12, 13, 14 ]
<jow_> you can manipulate that (increment etc.) and turn it back to an ip using arrtoip()
<f00b4r0> jow_: I use warn() for printing. Being very crude, in logread the output was truncated. It could be a log artifact in fact
<jow_> works for IPv6 too, that'll give you a 16 instead of 4 element arry
<hgl> jow_: cool. I'll give it try. and you would accept a PR that ports these functions to ucode?
<jow_> it should be a seaprate library
<jow_> ucode-mod-ip
<hgl> makes sense
<jow_> I would make sense to port that to ucode (replace Lua API calls with ucode calls)
<jow_> minus the netlink parts, those are well covered by ucode-mod-rtnl already
<f00b4r0> jow_: i also can't help but notice you have a lot of code in fw4.uc that seems pretty generic for parsing uci configs and could be used elsewhere ;)
<jow_> f00b4r0: yes, there'll be truncation
<jow_> f00b4r0: make sure that you append a newline
<f00b4r0> I did
tidalf has joined #openwrt-devel
<jow_> you can pretty-print the data by filtering it through sprintf('%.J\n', ...)
<f00b4r0> noted, thx
<hgl> jow_: btw, green light or red light on config_find?
<jow_> f00b4r0: as for uci parsing, yes - I keep redoing the "define a dict of known options + formats, then read uci according to it" logic in various projects
<jow_> f00b4r0: problem is generalizing it enough, wrt. supported data formats etc.
<jow_> s/data formats/option value formats/
<jow_> without overengineering it
<f00b4r0> jow_: I'd make what's in fw4 available for inclusion and if stuff happens to be missing there for others I'm sure you'll get patches :)
<jow_> hgl: not sure really, it seems like a 90% copy of config_foreach()
<jow_> hgl: maybe just add a config_foreach_ex() that does the very same as config_foreach() but stops when $? of callback is != 0
<jow_> I also don't particularily like the subshell usage of config_find
<f00b4r0> I'm trying to handle the case where an option is set as "option" or "list" and I'm sure i'm doing it very stupidly. Not knowing ES probably doesn't help either :)
<jow_> it does not appear to fit well into the rest of the code which uses variable references
<f00b4r0> and I see you've got all that sorted out already in fw4
<hgl> jow_: I see, config_foreach_ex sounds reasonable. are there other places where the _ex convention is used?
<jow_> hgl: not in openwrt itself, I just know it from various other projects, e.g. libjson-c
<hgl> ok, I'll update the PR
<jow_> it's just my opinion though, maybe nbd has another
<jow_> maybe we can even keep the original config_foreach() and simply implement a new method config_foreach_stop() which callbacks can invoke
<jow_> that procedure would set a private sentinel-variable which causes the iterator loop in config_foreach() to stop
<hgl> you mean change config_foreach, so it uses an internal variable like __stop?
<hgl> yeah, that can improve code reuse
<jow_> hgl: http://sprunge.us/GXgFmf (untested)
<hgl> jow_: do you know the difference between sep and empty here? https://github.com/openwrt/openwrt/blob/1645c34d564e0df774ec0f7bb58bcef2771703a6/rules.mk#L38
<jow_> hgl: sep is a newline iirc
<hgl> from my test they seem to be exactly the same, the empty string
* f00b4r0 discovers that ucode does not support typeof()
<jow_> hgl: empty is a cludge to declare a variable holding a single whitespace (to prevent GNU make from collapsing the space away)
<jow_> f00b4r0: type()
<f00b4r0> ha thx!
<hgl> jow_: since it contains only one new line, it's doesn't seems to be the new line, newline contains two, so it's a new line
<jow_> f00b4r0: will implement the typeof operator though, it makes sense
<hgl> Makefile will ignore one new line in define
<f00b4r0> blogic told me ucode is fully ES6 compliant, so I went off rails ;D
<jow_> hgl: ah indeed, then I don't know
<jow_> f00b4r0: no, it's syntax closely resembles ES6
<jow_> it has some obvious differences and omissions
<jow_> like for (... in ...) vs. for (... of ...)
<jow_> or type(...) vs. typeof ...
<f00b4r0> since I know neither language, I'll be an easy sponge ;)
<jow_> though I'll implement the latter, it is simple
<f00b4r0> but it's good to know the differences when googling for things :)
<jow_> hgl: the newline stripping you mention likely depends on context
<hgl> i know it's meant to make foreach work in a recipe, but $(sep) seems to be a noop here
<jow_> it might not happen in certain contexts
<jow_> or it only happens on evlauation
<hgl> oh, I don't know it could be controlled
<jow_> I think it is like in shell
<jow_> $(foo) will collapse and strip whitespace
<jow_> "$(foo)" will not
<jow_> similar semantics are present in GNU make for sure
<hgl> I'm trying to do something similar in a package's Makefile, and the sep trick doesn't seem to work for me
<hgl> become foreach inject space between items
<jow_> like foo:=<space char> will result in an empty $(foo) but foo:=$(empty)<space char>$(empty) not
<jow_> hgl: likely depends o nthe calling context
<jow_> something higher up in the call hierarchy probably collapses it
<jow_> maybe even an obvious $(strip ...) call
<hgl> oh ok, guess I can't directly use it in a package Makefile
MaxSoniX has joined #openwrt-devel
<hgl> jow_: i see how config_foreach_stop works, yeah, that's even better, no need to introduce another loop struct
<hgl> jow_: what about config_foreach_break?
<jow_> hgl: even better
<jow_> or config_foreach_return
<jow_> could maybe even be used to override the return value of the config_foreach() call
<hgl> config_foreach_return doesn't seem to suggest you can break the loop
<jow_> right, breakthen
<jow_> bbl
<oliv3r[m]> anybody know how I can 'disable' an 'okay' property, if my driver detects something wrong with it? I suppose it's just a text property without much meaning outside my driver, but it seems like the right thing to do
maciekb has quit [Read error: Connection reset by peer]
maciekb has joined #openwrt-devel
<hgl> jow_: PR updated and tested. I added dashes to the signal variable in case the user function overwrites it
tidalf has quit [Ping timeout: 480 seconds]
castiel652 has joined #openwrt-devel
<castiel652> hi room
tidalf has joined #openwrt-devel
<oliv3r[m]> o/
minimal has joined #openwrt-devel
<owrt-snap-builds> Build [#867](https://buildbot.openwrt.org/master/images/#builders/56/builds/867) of `kirkwood/generic` failed.
ptudor has quit [Read error: Connection reset by peer]
ptudor has joined #openwrt-devel
<owrt-snap-builds> Build [#878](https://buildbot.openwrt.org/master/images/#builders/41/builds/878) of `bcm27xx/bcm2708` failed.
<owrt-snap-builds> Build [#874](https://buildbot.openwrt.org/master/images/#builders/17/builds/874) of `ramips/rt305x` failed.
<owrt-snap-builds> Build [#864](https://buildbot.openwrt.org/master/images/#builders/55/builds/864) of `malta/be` failed.
<castiel652> oliv3r[m] o/
tidalf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<castiel652> I got a really stupid compile error at work today. was compiling Python and then it complained about date. Changed my date format settings and it works LOL
<mrkiko> castiel652: maybe you can report that if suitable?
<castiel652> mrkiko I will try to reproduce that when I am in the office tomorrow :)
<mrkiko> castiel652: thanks!
G10h4ck has joined #openwrt-devel
floof58 is now known as Guest1135
floof58 has joined #openwrt-devel
Guest1135 has quit [Ping timeout: 480 seconds]
dgcampea has quit [Remote host closed the connection]
dgcampea has joined #openwrt-devel
G10h4ck_ has joined #openwrt-devel
G10h4ck has quit [Ping timeout: 480 seconds]
castiel652 has quit [Quit: Leaving]
danitool has quit [Quit: Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos]
danitool has joined #openwrt-devel
fakuivan_ has quit [Remote host closed the connection]
fakuivan has joined #openwrt-devel
cbeznea has quit [Read error: Connection reset by peer]
cbeznea has joined #openwrt-devel
maciekb has quit [Read error: Connection reset by peer]
maciekb has joined #openwrt-devel
rua has quit [Ping timeout: 480 seconds]
rua has joined #openwrt-devel
djfe_ is now known as djfe
Ansuel has quit [Ping timeout: 480 seconds]
schwicht has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schwicht has joined #openwrt-devel
Ansuel has joined #openwrt-devel
Ansuel has quit []
Ansuel has joined #openwrt-devel
Ansuel has quit []
Ansuel has joined #openwrt-devel
Ansuel has quit []
Ansuel has joined #openwrt-devel
Ansuel has quit []
Ansuel has joined #openwrt-devel
cbeznea has quit [Quit: Leaving.]
Ansuel has quit [Quit: ZNC 1.8.2 - https://znc.in]
Ansuel has joined #openwrt-devel
cmonroe has quit [Read error: Connection reset by peer]
cmonroe has joined #openwrt-devel
Ansuel has quit []
Ansuel has joined #openwrt-devel
G10h4ck_ has quit [Ping timeout: 480 seconds]
Lynx- has joined #openwrt-devel
<Lynx-> can anyone advise how to ensure script terminated in procd context results in 'service X status' showing 'inactive' rather than 'running'?
<oliv3r[m]> any of you subscribed to the busybox mailing list by any chance?
<oliv3r[m]> I just sent out something an hour ago; but cant' see it in the archives
<oliv3r[m]> probably takes a while; i get that, but always curious to see if a mail goes through :)
<slh> "Only subscribers to the BusyBox mailing list are allowed to post to this list." did you subscribe before?
bluew has joined #openwrt-devel
<oliv3r[m]> hah, i did not; but did not get a rejection either
<oliv3r[m]> stupid registrations; i'll deal with that tomorrow then; thanks for that
EsdiDude has joined #openwrt-devel
MaxSoniX has quit [Quit: Konversation terminated!]
mo has joined #openwrt-devel
<EsdiDude> Hello everyone. I'm trying to get a port going to a Dlink 868L. I got a boost thanks to Quarky's work back in 2017 - see https://github.com/quarkysg/openwrt/commits/lede-17.01-northstar. So I adapted the code the latest branch, compiled, got it flashed from stock - however.. I'm hitting a CodeReal: invalid data followed by a lzma decompress fail: -2
<mo> i really need help from someone that can point me to a firmware for my device. Its the Wavlink WL-WN570HN2
<EsdiDude> I put the bootlog on https://pastebin.com/5gmAUtQF - I'm looking for pointers on what might be the issue there.
<Slimey> EsdiDude you booting from flash or initramfs?
robimarko has quit [Quit: Leaving]
mo has quit [Remote host closed the connection]
<Slimey> try messing with KERNEL := lzma* options
<EsdiDude> Slimey, I'm booting from flash
<owrt-2102-builds> Build [#70](https://buildbot.openwrt.org/openwrt-21.02/images/#builders/25/builds/70) of `ath25/generic` completed successfully.
<EsdiDude> Slimey, that looks like it's worth a shot
<EsdiDude> Thank you
<Ansuel> can't wait werror to merge and watch 100000 package to fail
<owrt-2102-builds> Build [#69](https://buildbot.openwrt.org/openwrt-21.02/images/#builders/29/builds/69) of `x86/geode` completed successfully.
bookworm has joined #openwrt-devel
<EsdiDude> Smiley, the 860L "B" version is based on a ramips chipset, so the loader is probably different
robimarko-temp has joined #openwrt-devel
robimarko-temp has quit []
<EsdiDude> The 868L is based on a broadcom chipset, which makes life more challenging.
EsdiDude_ has joined #openwrt-devel
EsdiDude has quit [Read error: Connection reset by peer]
EsdiDude__ has joined #openwrt-devel
EsdiDude_ has quit [Ping timeout: 480 seconds]
Lynx- has quit [Remote host closed the connection]
<jow_> Ansuel: you plan to add -Werror by default?
<jow_> don't think it's a good idea
<jow_> future gcc updates will keep introducing new warnings in code that was perfectly fine before
<jow_> and fixing it for those future versions might break it on older ones
Tapper has quit [Quit: Tapper]
<jow_> ah, for the kernel
Tapper has joined #openwrt-devel
<Ansuel> jow just for the kernel not for every package
<Ansuel> we can sustain clean code on kernel on package it's impossible
philipp64 has quit [Ping timeout: 480 seconds]
schwicht has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
philipp64 has joined #openwrt-devel
floof58 is now known as Guest1165
floof58 has joined #openwrt-devel
Guest1165 has quit [Ping timeout: 480 seconds]
<djfe> When will we drop support for 8/32 devices like the Asus RT-N11P B1?
<djfe> (or set them to source-only or something)
guidosarducci has quit [Remote host closed the connection]
guidosarducci has joined #openwrt-devel
guidosarducci has quit [Remote host closed the connection]
Tapper has quit [Quit: Tapper]
svanheule has quit [Ping timeout: 480 seconds]
<slh> djfe: support for devices with 32 MB RAM has already been discontinued, even if there still are the images around - and if you look deeper, you may also still find images for devices with 16 MB RAM - just that those will crash and burn while booting
guidosarducci has joined #openwrt-devel
danitool has quit [Remote host closed the connection]
svanheule has joined #openwrt-devel