2 if [ "$grub_platform" = "pc" ]; then
3 menuentry 'Search and boot Windows' --class=boot_windows {
6 while [ $partid -le 128 ]; do
7 if vt_check_part_exist $partid; then
8 for bt in bootmgr BOOTMGR Bootmgr BootMGR; do
9 if [ -f ($vtoydev,$partid)/$bt ]; then
10 set root=($vtoydev,$partid)
21 if search -n -s -f /Boot/BCD; then
22 for bt in bootmgr BOOTMGR Bootmgr BootMGR; do
28 elif search -n -s -f /NTDETECT.COM; then
32 echo "Windows NOT found ..."
36 menuentry 'Search and boot Grub4dos' --class=boot_g4d {
37 if search -n -s -f /grldr; then
40 echo "Grub4dos NOT found ..."
44 menuentry 'Boot the 1st local disk' --class=boot_disk {
50 menuentry 'Boot the 2nd local disk' --class=boot_disk {
56 menuentry 'Boot the 3rd local disk' --class=boot_disk {
64 menuentry 'Search and boot Windows' --class=boot_windows {
67 while [ $partid -le 128 ]; do
68 if vt_check_part_exist $partid; then
69 if [ -f ($vtoydev,$partid)/EFI/Microsoft/Boot/bootmgfw.efi ]; then
70 set root=($vtoydev,$partid)
71 terminal_output console
72 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
81 if search -n -s -f /EFI/Microsoft/Boot/bootmgfw.efi; then
82 terminal_output console
83 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
86 echo "Windows NOT found ..."
90 menuentry 'Search and boot BOOTX64.EFI' --class=boot_uefi {
91 if search -n -s -f /efi/boot/bootx64.efi; then
92 terminal_output console
93 chainloader /efi/boot/bootx64.efi
96 echo "BOOTX64.EFI NOT found ..."
102 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {