| 
 | 
 
set timeout="5" 
set default="0" 
 
insmod all_video 
insmod vbe 
insmod vga 
insmod video_bochs 
insmod video_cirrus 
insmod font 
insmod gfxterm 
insmod gfxmenu 
insmod gettext 
insmod jpeg 
insmod png 
 
#加载unicode字体显示中文 
font=(memdisk)/boot/grub/fonts/unicode.pf2 
if loadfont $font; then 
 set gfxmode=1366x768 
 set locale_dir=(memdisk)/boot/grub/locale 
 set lang=zh_CN 
fi 
 
#设置分辨率 
set gfxmode=1366x768 
terminal_output gfxterm 
 
#设置主题或背景图片 
if search --no-floppy -f /boot/grub/themes/Vimix/theme.txt; then 
 set theme=/boot/grub/themes/Vimix/theme.txt 
else 
 background_image /boot/grub/background.png 
 set color_normal=red/black 
 set color_highlight=magenta/black 
fi 
 
menuentry "【1】Windows PE" --class windows { 
        insmod fat 
        insmod ntfs 
        insmod search_fs_file 
        insmod ntldr 
        search --file --no-floppy --set /boot/grub/grub-bios.cfg 
        if [ -e /WinPE.iso ]; then 
                linux16 /boot/memdisk iso raw 
                initrd16 /WinPE.iso 
        elif [ -e /BOOTMGR ]; then 
                ntldr /BOOTMGR 
        else 
                echo '没有找到Windows PE' 
                sleep --verbose 5 
    fi 
} 
menuentry "【2】重启计算机" --class reboot { 
        reboot 
} 
menuentry "【3】关闭计算机" --class shutdown { 
        halt 
} 
 
 
 |   
 
 
 
 |