openwrt/package/network
Hannu Nyman b800595a38 netifd: ensure netifd_loglevel default value as fallback
Commit 168d5af added the possibility to configure netifd logging level.
The option is read from /etc/config/network and validated.
Supposedly the validation sets 2 as default.

But in case of a syntax error in /etc/config/network, the validation
result can be empty. Then the always passed option to netifd is
just '-l' instead of '-l 2'. That crashes netifd and prevents network
from launching.

Add a fallback value to the variable, so that there will always be
a proper value after the '-l' option.

Improves: 168d5af "netifd: add loglevel config option (fixes #18001)"
Fixes: #21816

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Link: https://github.com/openwrt/openwrt/pull/21819
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-02-02 09:47:41 +01:00
..
config netifd: ensure netifd_loglevel default value as fallback 2026-02-02 09:47:41 +01:00
ipv6 odhcp6c: update to Git HEAD (2026-01-25) 2026-01-26 18:49:51 +01:00
services hostapd: fix dealing with required interface restart in AP+STA mode 2026-02-01 20:21:38 +01:00
utils iw: replace patch with upstream version 2026-01-29 00:09:42 +01:00