# CONEXLOG — auto boot Linux, sem menu set timeout=0 set timeout_style=hidden set default=0 set pager=0 insmod part_gpt insmod part_msdos insmod fat insmod iso9660 insmod ntfs insmod loopback insmod search insmod search_fs_file insmod search_label insmod linux insmod echo insmod chain menuentry "Linux Mint CONEXLOG Live" { # 1) Pendrive Rufus (label MINT_CONEXL / casper) if search --no-floppy --set=root --label MINT_CONEXL ; then echo "Boot USB Mint..." linux /casper/vmlinuz boot=casper noprompt noeject quiet splash --- initrd /casper/initrd.lz boot fi if search --no-floppy --set=root --file /casper/vmlinuz ; then echo "Boot casper..." linux /casper/vmlinuz boot=casper noprompt noeject quiet splash --- initrd /casper/initrd.lz boot fi # 2) ISO no HD C:\conexlog-mint.iso if search --no-floppy --set=root --file /conexlog-mint.iso ; then echo "Boot ISO HD..." set isofile=/conexlog-mint.iso loopback loop $isofile linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject quiet splash --- initrd (loop)/casper/initrd.lz boot fi echo "ERRO: nem USB nem ISO encontrados" sleep 5 } menuentry "Windows" { search --no-floppy --file --set=root /EFI/Microsoft/Boot/bootmgfw.efi chainloader /EFI/Microsoft/Boot/bootmgfw.efi }