Advertisement
slowsnow

Untitled

Aug 17th, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1.  
  2. if [ x$timeout = x ]; then
  3. set timeout=5
  4. fi
  5. if [ x$default = x ]; then
  6. set default=0
  7. fi
  8. set fallback=2
  9. set pager=1
  10.  
  11. function load_video {
  12. if [ x$feature_all_video_module = xy ]; then
  13. insmod all_video
  14. else
  15. insmod efi_gop
  16. insmod efi_uga
  17. insmod ieee1275_fb
  18. insmod vbe
  19. insmod vga
  20. insmod video_bochs
  21. insmod video_cirrus
  22. fi
  23. }
  24.  
  25. if loadfont /boot/grub/unicode.pf2 ; then
  26. set gfxmode=auto
  27. load_video
  28. if [ x$no_gfxmode = x ]; then
  29. insmod gfxterm
  30. terminal_output gfxterm
  31. else
  32. terminal_output console
  33. fi
  34. insmod gettext
  35. fi
  36.  
  37. if [ -f /boot/grub/grub-calculate.png ]; then
  38. insmod png
  39. background_image -m stretch /boot/grub/grub-calculate.png
  40. fi
  41.  
  42. if [ x$noefi_opt = x ]; then
  43. noefi_opt=''
  44. export noefi_opt
  45. fi
  46.  
  47. bootparams=calculate=
  48.  
  49. if [ x$bootlang != x ]
  50. then
  51. bootparams=${bootparams}lang:${bootlang}
  52. fi
  53. bootparams=${bootparams},
  54.  
  55. if [ x$bootkeymap != x ]
  56. then
  57. bootparams=${bootparams}keymap:${bootkeymap}
  58. fi
  59. bootparams=${bootparams},
  60.  
  61. if [ x$boottimezone != x ]
  62. then
  63. bootparams=${bootparams}timezone:${boottimezone}
  64. fi
  65. bootparams=${bootparams},
  66.  
  67. if [ x$bootvga != x ]
  68. then
  69. bootparams=${bootparams}resolution:${bootvga}
  70. fi
  71. bootparams=${bootparams},
  72.  
  73. if [ x$bootvideo != x ]
  74. then
  75. bootparams=${bootparams}video:${bootvideo}
  76. fi
  77. bootparams=${bootparams},
  78.  
  79. if [ x$bootcomposite != x ]
  80. then
  81. bootparams=${bootparams}composite:${bootcomposite}
  82. fi
  83.  
  84. if [ x$bootparams = xcalculate=,,,,, ]
  85. then
  86. bootparams=
  87. fi
  88.  
  89. insmod part_gpt
  90.  
  91. if [ x$no_gfxmode = x ]; then
  92. menuentry "Disable grub gfxmode" {
  93. set no_gfxmode="grub_nogfxmode"
  94. export no_gfxmode
  95. set timeout=30
  96. export timeout
  97. configfile /boot/grub/grub.cfg
  98. }
  99. fi
  100.  
  101. menuentry "Calculate Linux Desktop 14.16.2 XFCE LiveDVD" {
  102. echo "Language: ${bootlang}"
  103. echo "Keyboard: ${bootkeymap}"
  104. echo "Timezone: ${boottimezone}"
  105. echo "Bootparams: ${bootparams}"
  106. echo "Please wait..."
  107. 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}
  108. initrd /boot/initrd
  109. }
  110.  
  111. menuentry "Calculate Linux Desktop 14.16.2 XFCE LiveDVD (RAM)" {
  112. echo "Language: ${bootlang}"
  113. echo "Keyboard: ${bootkeymap}"
  114. echo "Timezone: ${boottimezone}"
  115. echo "Bootparams: ${bootparams}"
  116. echo "Please wait..."
  117. 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}
  118. initrd /boot/initrd
  119. }
  120.  
  121. menuentry "Calculate Linux Desktop 14.16.2 XFCE LiveDVD (No-X)" {
  122. echo "Language: ${bootlang}"
  123. echo "Keyboard: ${bootkeymap}"
  124. echo "Timezone: ${boottimezone}"
  125. echo "Bootparams: ${bootparams}"
  126. echo "Please wait..."
  127. 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}
  128. initrd /boot/initrd
  129. }
  130.  
  131. menuentry "Calculate Linux Desktop 14.16.2 XFCE LiveDVD Builder" {
  132. echo "Language: ${bootlang}"
  133. echo "Keyboard: ${bootkeymap}"
  134. echo "Timezone: ${boottimezone}"
  135. echo "Bootparams: ${bootparams}"
  136. echo "Please wait..."
  137. 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