This repository was archived by the owner on May 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
files/board/arpl/overlayfs/opt/arpl Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -973,6 +973,8 @@ function keymapMenu() {
973973
974974# ##############################################################################
975975function updateMenu() {
976+ PLATFORM=" ` readModelKey " ${MODEL} " " platform" ` "
977+ KVER=" ` readModelKey " ${MODEL} " " builds.${BUILD} .kver" ` "
976978 while true ; do
977979 dialog --backtitle " ` backtitle` " --menu " Choose a option" 0 0 0 \
978980 a " Update arpl" \
@@ -1133,11 +1135,13 @@ function updateMenu() {
11331135 rm " ${MODULES_PATH} /${P} .tgz"
11341136 mv " /tmp/${P} .tgz" " ${MODULES_PATH} /${P} .tgz"
11351137 done
1136- # Rebuild modules
1137- writeConfigKey " modules" " {}" " ${USER_CONFIG_FILE} "
1138- while read ID DESC; do
1139- writeConfigKey " modules.${ID} " " " " ${USER_CONFIG_FILE} "
1140- done < <( getAllModules " ${PLATFORM} " " ${KVER} " )
1138+ # Rebuild modules if model/buildnumber is selected
1139+ if [ -n " ${PLATFORM} " -a -n " ${KVER} " ]; then
1140+ writeConfigKey " modules" " {}" " ${USER_CONFIG_FILE} "
1141+ while read ID DESC; do
1142+ writeConfigKey " modules.${ID} " " " " ${USER_CONFIG_FILE} "
1143+ done < <( getAllModules " ${PLATFORM} " " ${KVER} " )
1144+ fi
11411145 DIRTY=1
11421146 dialog --backtitle " ` backtitle` " --title " Update Modules" --aspect 18 \
11431147 --msgbox " Modules updated with success!" 0 0
You can’t perform that action at this time.
0 commit comments