From d0744513a6346ed420115ae56ac920b7abeb603d Mon Sep 17 00:00:00 2001 From: longpanda Date: Tue, 22 Feb 2022 20:20:59 +0800 Subject: [PATCH] You can set { "VTOY_DEFAULT_IMAGE": "F2>" } to set F2 browser as the default menu entry. --- INSTALL/grub/grub.cfg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/INSTALL/grub/grub.cfg b/INSTALL/grub/grub.cfg index fe74ffa4..a59b82d0 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