]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
You can set { "VTOY_DEFAULT_IMAGE": "F2>" } to set F2 browser as the default menu...
authorlongpanda <admin@ventoy.net>
Tue, 22 Feb 2022 12:20:59 +0000 (20:20 +0800)
committerlongpanda <admin@ventoy.net>
Tue, 22 Feb 2022 12:20:59 +0000 (20:20 +0800)
INSTALL/grub/grub.cfg

index fe74ffa468aa128b17affc1914580fafdc87914c..a59b82d02b47ec739a1e7f85c11f7ce30de9a11b 100644 (file)
@@ -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