mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Merge pull request #483 from fbelavenuto/update-modules-bug
Fixing a bug into update modules, now the user modules is rebuilded
This commit is contained in:
commit
dfb7bf0e16
2
TODO
2
TODO
@ -4,7 +4,7 @@ A fazer
|
|||||||
- "Sensitive data" (#312)
|
- "Sensitive data" (#312)
|
||||||
- Checar drivers para MMC/SD/eMMC
|
- Checar drivers para MMC/SD/eMMC
|
||||||
- Checar drivers para chelsio T420, T520 e T580
|
- Checar drivers para chelsio T420, T520 e T580
|
||||||
-
|
- Melhorar função getAllModules()
|
||||||
|
|
||||||
Concluidos:
|
Concluidos:
|
||||||
- Generalizar código dos addons
|
- Generalizar código dos addons
|
||||||
|
@ -1132,6 +1132,11 @@ function updateMenu() {
|
|||||||
rm "${MODULES_PATH}/${P}.tgz"
|
rm "${MODULES_PATH}/${P}.tgz"
|
||||||
mv "/tmp/${P}.tgz" "${MODULES_PATH}/${P}.tgz"
|
mv "/tmp/${P}.tgz" "${MODULES_PATH}/${P}.tgz"
|
||||||
done
|
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
|
DIRTY=1
|
||||||
dialog --backtitle "`backtitle`" --title "Update Modules" --aspect 18 \
|
dialog --backtitle "`backtitle`" --title "Update Modules" --aspect 18 \
|
||||||
--msgbox "Modules updated with success!" 0 0
|
--msgbox "Modules updated with success!" 0 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user