mirror of
https://github.com/openwrt/luci.git
synced 2026-07-14 02:54:28 +04:00
cf114f96b6
ubus.call('system', 'board') returns null in minimal container
runtimes without procd. Subsequent accesses to boardinfo.hostname
and boardinfo.rootfs_type crash with 'left-hand side expression
is null'. Add null fallback to prevent the crash.
Fixes openwrt/luci#8726.
Signed-off-by: Maxim Skokov <skokov.m020709@gmail.com>