Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ x$timeout = x ]; then
- set timeout=5
- fi
- if [ x$default = x ]; then
- set default=0
- fi
- set fallback=2
- set pager=1
- 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 loadfont /boot/grub/unicode.pf2 ; then
- set gfxmode=auto
- load_video
- if [ x$no_gfxmode = x ]; then
- insmod gfxterm
- terminal_output gfxterm
- else
- terminal_output console
- fi
- insmod gettext
- fi
- if [ -f /boot/grub/grub-calculate.png ]; then
- insmod png
- background_image -m stretch /boot/grub/grub-calculate.png
- fi
- if [ x$noefi_opt = x ]; then
- noefi_opt=''
- export noefi_opt
- fi
- bootparams=calculate=
- if [ x$bootlang != x ]
- then
- bootparams=${bootparams}lang:${bootlang}
- fi
- bootparams=${bootparams},
- if [ x$bootkeymap != x ]
- then
- bootparams=${bootparams}keymap:${bootkeymap}
- fi
- bootparams=${bootparams},
- if [ x$boottimezone != x ]
- then
- bootparams=${bootparams}timezone:${boottimezone}
- fi
- bootparams=${bootparams},
- if [ x$bootvga != x ]
- then
- bootparams=${bootparams}resolution:${bootvga}
- fi
- bootparams=${bootparams},
- if [ x$bootvideo != x ]
- then
- bootparams=${bootparams}video:${bootvideo}
- fi
- bootparams=${bootparams},
- if [ x$bootcomposite != x ]
- then
- bootparams=${bootparams}composite:${bootcomposite}
- fi
- if [ x$bootparams = xcalculate=,,,,, ]
- then
- bootparams=
- fi
- insmod part_gpt
- if [ x$no_gfxmode = x ]; then
- menuentry "Disable grub gfxmode" {
- set no_gfxmode="grub_nogfxmode"
- export no_gfxmode
- set timeout=30
- export timeout
- configfile /boot/grub/grub.cfg
- }
- fi
- menuentry "Calculate Linux Desktop 14.16.2 XFCE LiveDVD" {
- echo "Language: ${bootlang}"
- echo "Keyboard: ${bootkeymap}"
- echo "Timezone: ${boottimezone}"
- echo "Bootparams: ${bootparams}"
- echo "Please wait..."
- linux /boot/vmlinuz root=live:LABEL=CLDX-20150604 init=/linuxrc rd.live.squashimg=livecd.squashfs nodevfs quiet noresume nomodeset splash=silent,theme:calculate console=tty1 ${bootparams} ${noefi_opt} ${no_gfxmode}
- initrd /boot/initrd
- }
- menuentry "Calculate Linux Desktop 14.16.2 XFCE LiveDVD (RAM)" {
- echo "Language: ${bootlang}"
- echo "Keyboard: ${bootkeymap}"
- echo "Timezone: ${boottimezone}"
- echo "Bootparams: ${bootparams}"
- echo "Please wait..."
- linux /boot/vmlinuz root=live:LABEL=CLDX-20150604 init=/linuxrc rd.live.squashimg=livecd.squashfs nodevfs quiet noresume nomodeset splash=silent,theme:calculate console=tty1 docache ${bootparams} ${noefi_opt} ${no_gfxmode}
- initrd /boot/initrd
- }
- menuentry "Calculate Linux Desktop 14.16.2 XFCE LiveDVD (No-X)" {
- echo "Language: ${bootlang}"
- echo "Keyboard: ${bootkeymap}"
- echo "Timezone: ${boottimezone}"
- echo "Bootparams: ${bootparams}"
- echo "Please wait..."
- linux /boot/vmlinuz root=live:LABEL=CLDX-20150604 init=/linuxrc rd.live.squashimg=livecd.squashfs nodevfs quiet noresume nomodeset splash=silent,theme:calculate console=tty1 nox ${bootparams} ${noefi_opt} ${no_gfxmode}
- initrd /boot/initrd
- }
- menuentry "Calculate Linux Desktop 14.16.2 XFCE LiveDVD Builder" {
- echo "Language: ${bootlang}"
- echo "Keyboard: ${bootkeymap}"
- echo "Timezone: ${boottimezone}"
- echo "Bootparams: ${bootparams}"
- echo "Please wait..."
- linux /boot/vmlinuz root=live:LABEL=CLDX-20150604 init=/linuxrc rd.live.squashimg=livecd.squashfs nodevfs quiet noresume nomodeset splash=silent,theme:calculate console=tty1 scratch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement