Skip to content

Commit

Permalink
optimize default item
Browse files Browse the repository at this point in the history
  • Loading branch information
wjz304 committed Jul 9, 2023
1 parent f18ba3e commit 4119576
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions files/board/arpl/overlayfs/opt/arpl/menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ if [ "x$1" = "xb" -a -n "${MODEL}" -a -n "${PRODUCTVER}" -a loaderIsConfigured ]
boot && exit 0 || sleep 5
fi
# Main loop
NEXT="m"
[ -n "${MODEL}" ] && NEXT="v" || NEXT="m"
while true; do
echo "m \"$(TEXT "Choose a model")\"" >"${TMP_PATH}/menu"
if [ -n "${MODEL}" ]; then
Expand Down Expand Up @@ -1798,23 +1798,23 @@ while true; do
;;
n)
productversMenu
NEXT="a"
NEXT="d"
;;
a)
addonMenu
NEXT="o"
NEXT="d"
;;
o)
moduleMenu
NEXT="x"
NEXT="d"
;;
x)
cmdlineMenu
NEXT="i"
NEXT="d"
;;
i)
synoinfoMenu
NEXT="v"
NEXT="d"
;;
v)
advancedMenu
Expand All @@ -1829,16 +1829,20 @@ while true; do
;;
l)
languageMenu
NEXT="m"
;;
k)
keymapMenu
NEXT="m"
;;
c)
dialog --backtitle "$(backtitle)" --colors --title "$(TEXT "Cleaning")" \
--prgbox "rm -rfv \"${CACHE_PATH}/dl\"" 0 0
NEXT="d"
;;
p)
updateMenu
NEXT="d"
;;
e)
NEXT="e"
Expand Down

0 comments on commit 4119576

Please sign in to comment.