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
24 if regexp '^hd0' $root; then
33 elif search -n -s -f /NTDETECT.COM; then
37 echo "Windows NOT found ..."
41 menuentry 'Search and boot Grub4dos' --class=boot_g4d {
42 if search -n -s -f /grldr; then
45 echo "Grub4dos NOT found ..."
49 menuentry 'Boot the 1st local disk' --class=boot_disk {
55 menuentry 'Boot the 2nd local disk' --class=boot_disk {
61 menuentry 'Boot the 3rd local disk' --class=boot_disk {
69 menuentry 'Search and boot Windows' --class=boot_windows {
72 while [ $partid -le 128 ]; do
73 if vt_check_part_exist $partid; then
74 if [ -f ($vtoydev,$partid)/EFI/Microsoft/Boot/bootmgfw.efi ]; then
75 set root=($vtoydev,$partid)
76 terminal_output console
77 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
86 if search -n -s -f /EFI/Microsoft/Boot/bootmgfw.efi; then
87 terminal_output console
88 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
91 echo "Windows NOT found ..."
95 menuentry 'Search and boot BOOTX64.EFI' --class=boot_uefi {
96 if search -n -s -f /efi/boot/bootx64.efi; then
97 terminal_output console
98 chainloader /efi/boot/bootx64.efi
101 echo "BOOTX64.EFI NOT found ..."
107 menuentry 'Return to previous menu [Esc]' --class=vtoyret VTOY_RET {