X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/c8e86938feedfcdb089a26cc18d476ead303d50e..2991f097fb98cfaf1a0ebd5048fc0e8bc08aa20d:/INSTALL/grub/power.cfg diff --git a/INSTALL/grub/power.cfg b/INSTALL/grub/power.cfg index daecd66..293151c 100644 --- a/INSTALL/grub/power.cfg +++ b/INSTALL/grub/power.cfg @@ -1,15 +1,25 @@ -menuentry 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 { - echo -e '\n\nSystem is halting ... \n' - sleep 1 - reboot -} + 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]' VTOY_RET { - echo 'Return ...' + menuentry "$VTLANG_RETURN_PREVIOUS" --class=vtoyret VTOY_RET { + echo "Return ..." + } }