From 4401c66da9127c72436c5fa4cb3807ef1be8f1ac Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Wed, 24 Dec 2025 00:15:12 +0100 Subject: [PATCH] fix: convert dashes to underscores in module ID detection The RPCD backend was generating module IDs with dashes (network-modes, client-guardian, etc.) but the UCI config uses underscores (network_modes, client_guardian, etc.). This mismatch prevented modules from being loaded and displayed in the dashboard. Fixed by adding conversion of dashes to underscores when generating module IDs from RPCD script names. Fixes: luci-app-secubox/root/usr/libexec/rpcd/secubox:18 --- luci-app-secubox/root/usr/libexec/rpcd/secubox | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-app-secubox/root/usr/libexec/rpcd/secubox b/luci-app-secubox/root/usr/libexec/rpcd/secubox index 6a700bbc..f303bd1f 100755 --- a/luci-app-secubox/root/usr/libexec/rpcd/secubox +++ b/luci-app-secubox/root/usr/libexec/rpcd/secubox @@ -14,8 +14,8 @@ detect_modules() { for script in $scripts; do if [ -x "/usr/libexec/rpcd/$script" ]; then - # Convert script name to module ID (remove -dashboard suffix) - local module_id=$(echo "$script" | sed 's/-dashboard$//') + # Convert script name to module ID (remove -dashboard suffix, convert dashes to underscores) + local module_id=$(echo "$script" | sed 's/-dashboard$//' | sed 's/-/_/g') modules="$modules $module_id" fi done