fix: system-hub get_components - Use correct ubus method names
Fixed get_components() to call luci.secubox 'modules' instead of 'get_modules' Fixed get_components_by_category() to call 'modules_by_category' instead of 'get_modules_by_category' This resolves the "No related RPC reply" error in System Hub overview. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
801601591c
commit
915ce641f4
@ -656,7 +656,7 @@ save_settings() {
|
||||
# Get components (leverages secubox module detection)
|
||||
get_components() {
|
||||
# Call secubox backend to get modules, which are the system components
|
||||
local result=$(ubus call luci.secubox get_modules 2>/dev/null)
|
||||
local result=$(ubus call luci.secubox modules 2>/dev/null)
|
||||
|
||||
if [ -n "$result" ]; then
|
||||
# Pass through the secubox modules as components
|
||||
@ -681,7 +681,7 @@ get_components_by_category() {
|
||||
json_cleanup
|
||||
|
||||
# Call secubox backend with category filter
|
||||
local result=$(ubus call luci.secubox get_modules_by_category "{\"category\":\"$category\"}" 2>/dev/null)
|
||||
local result=$(ubus call luci.secubox modules_by_category "{\"category\":\"$category\"}" 2>/dev/null)
|
||||
|
||||
if [ -n "$result" ]; then
|
||||
echo "$result"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user