From: longpanda Date: Tue, 22 Feb 2022 12:20:59 +0000 (+0800) Subject: You can set { "VTOY_DEFAULT_IMAGE": "F2>" } to set F2 browser as the default menu... X-Git-Tag: v1.0.71~11 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/d0744513a6346ed420115ae56ac920b7abeb603d You can set { "VTOY_DEFAULT_IMAGE": "F2>" } to set F2 browser as the default menu entry. --- diff --git a/INSTALL/grub/grub.cfg b/INSTALL/grub/grub.cfg index fe74ffa..a59b82d 100644 --- a/INSTALL/grub/grub.cfg +++ b/INSTALL/grub/grub.cfg @@ -2318,8 +2318,11 @@ if [ -n "$VTOY_DEFAULT_IMAGE" ]; then export timeout export default - - if [ "$vtHotkey" = "F4" ]; then + + if [ "$vtHotkey" = "F2" ]; then + unset timeout + vt_browser_disk + elif [ "$vtHotkey" = "F4" ]; then ventoy_localboot elif [ "$vtHotkey" = "F5" ]; then ventoy_diagnosis