Skip to content

Commit 51a035d

Browse files
committed
setup - only show enabled modules in config section
Since a98c595 we now need to check if a module is enabled. This fixes incorrectly showing config modules like wifi on systems where it is not supported.
1 parent df398d0 commit 51a035d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scriptmodules/admin/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ function config_gui_setup() {
513513
local id
514514
for id in "${__mod_id[@]}"; do
515515
# show all configuration modules and any installed packages with a gui function
516-
if [[ "${__mod_info[$id/section]}" == "config" ]] || rp_isInstalled "$id" && fnExists "gui_$id"; then
516+
if [[ "${__mod_info[$id/section]}" == "config" ]] || rp_isInstalled "$id" && rp_isEnabled "$id" && fnExists "gui_$id"; then
517517
options+=("${__mod_idx[$id]}" "$id - ${__mod_info[$id/desc]}" "${__mod_idx[$id]} ${__mod_info[$id/desc]}")
518518
fi
519519
done

0 commit comments

Comments
 (0)