mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Merge pull request #497 from fbelavenuto/update-modules
Fix a bug into update modules
This commit is contained in:
commit
b52afda06b
@ -973,6 +973,8 @@ function keymapMenu() {
|
|||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
function updateMenu() {
|
function updateMenu() {
|
||||||
|
PLATFORM="`readModelKey "${MODEL}" "platform"`"
|
||||||
|
KVER="`readModelKey "${MODEL}" "builds.${BUILD}.kver"`"
|
||||||
while true; do
|
while true; do
|
||||||
dialog --backtitle "`backtitle`" --menu "Choose a option" 0 0 0 \
|
dialog --backtitle "`backtitle`" --menu "Choose a option" 0 0 0 \
|
||||||
a "Update arpl" \
|
a "Update arpl" \
|
||||||
@ -1133,11 +1135,13 @@ 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
|
# Rebuild modules if model/buildnumber is selected
|
||||||
writeConfigKey "modules" "{}" "${USER_CONFIG_FILE}"
|
if [ -n "${PLATFORM}" -a -n "${KVER}" ]; then
|
||||||
while read ID DESC; do
|
writeConfigKey "modules" "{}" "${USER_CONFIG_FILE}"
|
||||||
writeConfigKey "modules.${ID}" "" "${USER_CONFIG_FILE}"
|
while read ID DESC; do
|
||||||
done < <(getAllModules "${PLATFORM}" "${KVER}")
|
writeConfigKey "modules.${ID}" "" "${USER_CONFIG_FILE}"
|
||||||
|
done < <(getAllModules "${PLATFORM}" "${KVER}")
|
||||||
|
fi
|
||||||
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