From a1c6610faa59ca2e7e56c10a669d75b908ef7bae Mon Sep 17 00:00:00 2001 From: Fabio Belavenuto Date: Tue, 10 Jan 2023 12:44:34 -0300 Subject: [PATCH] Fixing a bug into update modules, now the user modules is rebuilded --- TODO | 2 +- files/board/arpl/overlayfs/opt/arpl/menu.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 3e7ff1c7..e23201ed 100644 --- a/TODO +++ b/TODO @@ -4,7 +4,7 @@ A fazer - "Sensitive data" (#312) - Checar drivers para MMC/SD/eMMC - Checar drivers para chelsio T420, T520 e T580 - - + - Melhorar função getAllModules() Concluidos: - Generalizar código dos addons diff --git a/files/board/arpl/overlayfs/opt/arpl/menu.sh b/files/board/arpl/overlayfs/opt/arpl/menu.sh index a70e882c..1b472351 100755 --- a/files/board/arpl/overlayfs/opt/arpl/menu.sh +++ b/files/board/arpl/overlayfs/opt/arpl/menu.sh @@ -1132,6 +1132,11 @@ function updateMenu() { rm "${MODULES_PATH}/${P}.tgz" mv "/tmp/${P}.tgz" "${MODULES_PATH}/${P}.tgz" done + # Rebuild modules + writeConfigKey "modules" "{}" "${USER_CONFIG_FILE}" + while read ID DESC; do + writeConfigKey "modules.${ID}" "" "${USER_CONFIG_FILE}" + done < <(getAllModules "${PLATFORM}" "${KVER}") DIRTY=1 dialog --backtitle "`backtitle`" --title "Update Modules" --aspect 18 \ --msgbox "Modules updated with success!" 0 0