openwrt/package
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
..
base-files build: use STAGING_DIR for special APK package versions 2026-02-01 11:16:54 +01:00
boot uboot-mvebu: update to version 2026.01 2026-01-30 19:07:41 +01:00
devel strace: use bundled kernel headers 2026-01-21 11:41:59 +01:00
firmware linux-firmware: update to 20260110 2026-01-30 16:51:32 +01:00
kernel mac80211: fix AP+STA on DFS channels 2026-02-01 20:21:38 +01:00
libs build: use STAGING_DIR for special APK package versions 2026-02-01 11:16:54 +01:00
network netifd: ensure netifd_loglevel default value as fallback 2026-02-02 09:47:41 +01:00
system uclient: provide virtual wget-any 2026-01-12 14:28:52 +01:00
utils mdadm: move init before fstab init runs 2026-01-27 01:45:10 +01:00
Makefile build: use STAGING_DIR for special APK package versions 2026-02-01 11:16:54 +01:00