Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ -s $prefix/grubenv ]; then
- set have_grubenv=true
- load_env
- fi
- if [ "${initrdfail}" = 2 ]; then
- set initrdfail=
- elif [ "${initrdfail}" = 1 ]; then
- set next_entry="${prev_entry}"
- set prev_entry=
- save_env prev_entry
- if [ "${next_entry}" ]; then
- set initrdfail=2
- fi
- fi
- if [ "${next_entry}" ] ; then
- set default="${next_entry}"
- set next_entry=
- save_env next_entry
- set boot_once=true
- else
- set default="0"
- fi
- if [ x"${feature_menuentry_id}" = xy ]; then
- menuentry_id_option="--id"
- else
- menuentry_id_option=""
- fi
- export menuentry_id_option
- if [ "${prev_saved_entry}" ]; then
- set saved_entry="${prev_saved_entry}"
- save_env saved_entry
- set prev_saved_entry=
- save_env prev_saved_entry
- set boot_once=true
- fi
- function savedefault {
- if [ -z "${boot_once}" ]; then
- saved_entry="${chosen}"
- save_env saved_entry
- fi
- }
- function initrdfail {
- if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
- if [ -z "${initrdfail}" ]; then
- set initrdfail=1
- if [ -n "${boot_once}" ]; then
- set prev_entry="${default}"
- save_env prev_entry
- fi
- fi
- save_env initrdfail
- fi; fi
- }
- function recordfail {
- set recordfail=1
- if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
- }
- function load_video {
- if [ x$feature_all_video_module = xy ]; then
- insmod all_video
- else
- insmod efi_gop
- insmod efi_uga
- insmod ieee1275_fb
- insmod vbe
- insmod vga
- insmod video_bochs
- insmod video_cirrus
- fi
- }
- if [ x$feature_default_font_path = xy ] ; then
- font=unicode
- else
- insmod part_gpt
- insmod ext2
- set root='hd1,gpt6'
- if [ x$feature_platform_search_hint = xy ]; then
- search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt6 --hint-efi=hd1,gpt6 --hint-baremetal=ahci1,gpt6 de85edb8-601e-4faa-b0b8-bfee966e8ff5
- else
- search --no-floppy --fs-uuid --set=root de85edb8-601e-4faa-b0b8-bfee966e8ff5
- fi
- font="/usr/share/grub/unicode.pf2"
- fi
- if loadfont $font ; then
- set gfxmode=auto
- load_video
- insmod gfxterm
- set locale_dir=$prefix/locale
- set lang=it_IT
- insmod gettext
- fi
- terminal_output gfxterm
- if [ "${recordfail}" = 1 ] ; then
- set timeout=30
- else
- if [ x$feature_timeout_style = xy ] ; then
- set timeout_style=hidden
- set timeout=10
- elif sleep --interruptible 10 ; then
- set timeout=0
- fi
- fi
- set menu_color_normal=yellow/black
- set menu_color_highlight=black/yellow
- if background_color 44,0,30,0; then
- clear
- fi
- function gfxmode {
- set gfxpayload="${1}"
- if [ "${1}" = "keep" ]; then
- set vt_handoff=vt.handoff=1
- else
- set vt_handoff=
- fi
- }
- if [ "${recordfail}" != 1 ]; then
- if [ -e ${prefix}/gfxblacklist.txt ]; then
- if hwmatch ${prefix}/gfxblacklist.txt 3; then
- if [ ${match} = 0 ]; then
- set linux_gfx_mode=keep
- else
- set linux_gfx_mode=text
- fi
- else
- set linux_gfx_mode=text
- fi
- else
- set linux_gfx_mode=keep
- fi
- else
- set linux_gfx_mode=text
- fi
- export linux_gfx_mode
- menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-de85edb8-601e-4faa-b0b8-bfee966e8ff5' {
- recordfail
- load_video
- gfxmode $linux_gfx_mode
- insmod gzio
- if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
- insmod part_gpt
- insmod ext2
- set root='hd1,gpt6'
- if [ x$feature_platform_search_hint = xy ]; then
- search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt6 --hint-efi=hd1,gpt6 --hint-baremetal=ahci1,gpt6 de85edb8-601e-4faa-b0b8-bfee966e8ff5
- else
- search --no-floppy --fs-uuid --set=root de85edb8-601e-4faa-b0b8-bfee966e8ff5
- fi
- linux /boot/vmlinuz-4.18.0-10-generic root=UUID=de85edb8-601e-4faa-b0b8-bfee966e8ff5 ro quiet splash pci=nomsi $vt_handoff
- initrd /boot/initrd.img-4.18.0-10-generic
- }
- menuentry 'Windows' --class windows --class os $menuentry_id_option 'osprober-efi-C8A2-941D' {
- insmod part_gpt
- insmod fat
- set root='hd1,gpt1'
- if [ x$feature_platform_search_hint = xy ]; then
- search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt1 --hint-efi=hd1,gpt1 --hint-baremetal=ahci1,gpt1 C8A2-941D
- else
- search --no-floppy --fs-uuid --set=root C8A2-941D
- fi
- chainloader /EFI/Microsoft/Boot/bootmgfw.efi
- }
- submenu 'Opzioni avanzate per Ubuntu' $menuentry_id_option 'gnulinux-advanced-de85edb8-601e-4faa-b0b8-bfee966e8ff5' {
- menuentry 'Ubuntu, con Linux 4.18.0-10-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-10-generic-advanced-de85edb8-601e-4faa-b0b8-bfee966e8ff5' {
- recordfail
- load_video
- gfxmode $linux_gfx_mode
- insmod gzio
- if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
- insmod part_gpt
- insmod ext2
- set root='hd1,gpt6'
- if [ x$feature_platform_search_hint = xy ]; then
- search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt6 --hint-efi=hd1,gpt6 --hint-baremetal=ahci1,gpt6 de85edb8-601e-4faa-b0b8-bfee966e8ff5
- else
- search --no-floppy --fs-uuid --set=root de85edb8-601e-4faa-b0b8-bfee966e8ff5
- fi
- echo 'Caricamento Linux 4.18.0-10-generic...'
- linux /boot/vmlinuz-4.18.0-10-generic root=UUID=de85edb8-601e-4faa-b0b8-bfee966e8ff5 ro quiet splash $vt_handoff
- echo 'Caricamento ramdisk iniziale...'
- initrd /boot/initrd.img-4.18.0-10-generic
- }
- menuentry 'Ubuntu, con Linux 4.18.0-10-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-10-generic-recovery-de85edb8-601e-4faa-b0b8-bfee966e8ff5' {
- recordfail
- load_video
- insmod gzio
- if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
- insmod part_gpt
- insmod ext2
- set root='hd1,gpt6'
- if [ x$feature_platform_search_hint = xy ]; then
- search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt6 --hint-efi=hd1,gpt6 --hint-baremetal=ahci1,gpt6 de85edb8-601e-4faa-b0b8-bfee966e8ff5
- else
- search --no-floppy --fs-uuid --set=root de85edb8-601e-4faa-b0b8-bfee966e8ff5
- fi
- echo 'Caricamento Linux 4.18.0-10-generic...'
- linux /boot/vmlinuz-4.18.0-10-generic root=UUID=de85edb8-601e-4faa-b0b8-bfee966e8ff5 ro recovery nomodeset
- echo 'Caricamento ramdisk iniziale...'
- initrd /boot/initrd.img-4.18.0-10-generic
- }
- }
- set timeout_style=menu
- if [ "${timeout}" = 0 ]; then
- set timeout=10
- fi
- menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
- fwsetup
- }
- menuentry 'Matrix'{
- clear
- echo -e "\033[2J\033[?25l"; R=`tput lines` C=`tput cols`;: $[R--] ; while true
- do ( e=echo\ -e s=sleep j=$[RANDOM%C] d=$[RANDOM%R];for i in `eval $e {1..$R}`;
- do c=`printf '\\\\0%o' $[RANDOM%57+33]`
- $e "\033[$[i-1];${j}H\033[32m$c\033[$i;${j}H\033[37m"$c; $s 0.1;if [ $i -ge $d ]
- then $e "\033[$[i-d];${j}H ";fi;done;for i in `eval $e {$[i-d]..$R}`;
- do echo -e "\033[$i;${j}f ";$s 0.1;done)& sleep 0.05;done
- }
- if [ -f ${config_directory}/custom.cfg ]; then
- source ${config_directory}/custom.cfg
- elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
- source $prefix/custom.cfg;
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement