mirror of
https://github.com/openwrt/luci
synced 2025-01-07 03:27:12 +08:00
luci-base: prevent trace-back loading wireless on non-WiFi devices
Manifests in the console as: RPCError: RPC call to uci/get failed with ubus code 4: Resource not found The lazy-loading is harmless and has been that way for years, but the presence of the trace-back clouds other problems. This should keep the console cleaner; it conditionally attempts to load wireless when a more fundamental check for it passes. Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
parent
def988495a
commit
41cbd31c90
@ -357,7 +357,7 @@ function initNetworkState(refresh) {
|
||||
L.resolveDefault(callLuciHostHints(), {}),
|
||||
getProtocolHandlers(),
|
||||
L.resolveDefault(uci.load('network')),
|
||||
L.resolveDefault(uci.load('wireless')),
|
||||
L.hasSystemFeature('wifi') ? L.resolveDefault(uci.load('wireless')) : L.resolveDefault(),
|
||||
L.resolveDefault(uci.load('luci'))
|
||||
]).then(function(data) {
|
||||
var netifd_ifaces = data[0],
|
||||
|
Loading…
Reference in New Issue
Block a user