]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - INSTALL/grub/power.cfg
Fix the drive letter case check issue for VentoyPlugson in Windows. (#2078)
[Ventoy.git] / INSTALL / grub / power.cfg
index 7f6249f0bddf0e52f280bcc3cf70e6739fcba115..87d6769d5426d9d5f10264791c8fa68dff52c3f2 100644 (file)
@@ -1,15 +1,25 @@
-menuentry Reboot --class=power_reboot {
-    echo -e '\n\nSystem is rebooting ... \n'
-    sleep 1
-    reboot
-}
+submenu "$VTLANG_POWER" --class=debug_power --class=F5tool {
+    menuentry "$VTLANG_POWER_REBOOT" --class=debug_reboot --class=debug_power --class=F5tool {
+        echo -e '\n\nSystem is rebooting ... \n'
+        sleep 1
+        reboot
+    }
 
-menuentry Halt --class=power_halt {
-    echo -e '\n\nSystem is halting ... \n'
-    sleep 1
-    halt
-}
+    menuentry "$VTLANG_POWER_HALT" --class=debug_halt --class=debug_power --class=F5tool {
+        echo -e '\n\nSystem is halting ... \n'
+        sleep 1
+        halt
+    }
+    
+    if [ "$grub_platform" != "pc" ]; then
+        menuentry '$VTLANG_POWER_BOOT_EFIFW' --class=debug_efisetup --class=debug_power --class=F5tool {            
+            echo -e '\n\nRebooting to enter UEFI firmware setup ... \n'
+            sleep 1
+            fwsetup
+        }
+    fi
 
-menuentry 'Return to menu [Esc]' --class=vtoyret VTOY_RET {
-    echo 'Return ...'
+    menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET {
+        echo "Return ..."
+    }
 }