barjac

theme

Nov 18th, 2010
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.16 KB | None | 0 0
  1. #
  2. # DO NOT EDIT THIS FILE
  3. #
  4. # It is automatically generated by grub2-mkconfig using templates
  5. # from /etc/grub.d and settings from /etc/default/grub
  6. #
  7.  
  8. ### BEGIN /etc/grub.d/00_header ###
  9. if [ -s $prefix/grubenv ]; then
  10.   load_env
  11. fi
  12. set default="0"
  13. if [ "${prev_saved_entry}" ]; then
  14.   set saved_entry="${prev_saved_entry}"
  15.   save_env saved_entry
  16.   set prev_saved_entry=
  17.   save_env prev_saved_entry
  18.   set boot_once=true
  19. fi
  20.  
  21. function savedefault {
  22.   if [ -z "${boot_once}" ]; then
  23.     saved_entry="${chosen}"
  24.     save_env saved_entry
  25.   fi
  26. }
  27.  
  28. function load_video {
  29.   insmod vbe
  30.   insmod vga
  31.   insmod video_bochs
  32.   insmod video_cirrus
  33. }
  34.  
  35. insmod part_msdos
  36. insmod ext2
  37. search --no-floppy --label --set=root 2010_1_64_root
  38. if loadfont /usr/share/grub/unicode.pf2 ; then
  39.   set gfxmode=640x480
  40.   load_video
  41.   insmod gfxterm
  42. fi
  43. terminal_output gfxterm
  44. insmod part_msdos
  45. insmod ext2
  46. search --no-floppy --label --set=root 2010_1_64_root
  47. insmod gfxmenu
  48. insmod png
  49. set theme=($root)/boot/themes/proto/theme.txt
  50. set timeout=5
  51. ### END /etc/grub.d/00_header ###
  52.  
  53. ### BEGIN /etc/grub.d/10_linux ###
  54. menuentry 'Mandriva GNU/Linux, with Linux 2.6.33.7-desktop-69mib' --class mandriva --class gnu-linux --class gnu --class os {
  55.     load_video
  56.     set gfxpayload=keep
  57.     insmod part_msdos
  58.     insmod ext2
  59.     search --no-floppy --label --set=root 2010_1_64_root
  60.     echo    'Loading Linux 2.6.33.7-desktop-69mib ...'
  61.     linux   /boot/vmlinuz-2.6.33.7-desktop-69mib root=LABEL=2010_1_64_root ro  splash=verbose
  62.     echo    'Loading initial ramdisk ...'
  63.     initrd  /boot/initrd-2.6.33.7-desktop-69mib.img
  64. }
  65. menuentry 'Mandriva GNU/Linux, with Linux 2.6.33.7-desktop-69mib (recovery mode)' --class mandriva --class gnu-linux --class gnu --class os {
  66.     load_video
  67.     set gfxpayload=keep
  68.     insmod part_msdos
  69.     insmod ext2
  70.     search --no-floppy --label --set=root 2010_1_64_root
  71.     echo    'Loading Linux 2.6.33.7-desktop-69mib ...'
  72.     linux   /boot/vmlinuz-2.6.33.7-desktop-69mib root=LABEL=2010_1_64_root ro single
  73.     echo    'Loading initial ramdisk ...'
  74.     initrd  /boot/initrd-2.6.33.7-desktop-69mib.img
  75. }
  76. menuentry 'Mandriva GNU/Linux, with Linux 2.6.33.7-desktop-2mnb' --class mandriva --class gnu-linux --class gnu --class os {
  77.     load_video
  78.     set gfxpayload=keep
  79.     insmod part_msdos
  80.     insmod ext2
  81.     search --no-floppy --label --set=root 2010_1_64_root
  82.     echo    'Loading Linux 2.6.33.7-desktop-2mnb ...'
  83.     linux   /boot/vmlinuz-2.6.33.7-desktop-2mnb root=LABEL=2010_1_64_root ro  splash=verbose
  84.     echo    'Loading initial ramdisk ...'
  85.     initrd  /boot/initrd-2.6.33.7-desktop-2mnb.img
  86. }
  87. menuentry 'Mandriva GNU/Linux, with Linux 2.6.33.7-desktop-2mnb (recovery mode)' --class mandriva --class gnu-linux --class gnu --class os {
  88.     load_video
  89.     set gfxpayload=keep
  90.     insmod part_msdos
  91.     insmod ext2
  92.     search --no-floppy --label --set=root 2010_1_64_root
  93.     echo    'Loading Linux 2.6.33.7-desktop-2mnb ...'
  94.     linux   /boot/vmlinuz-2.6.33.7-desktop-2mnb root=LABEL=2010_1_64_root ro single
  95.     echo    'Loading initial ramdisk ...'
  96.     initrd  /boot/initrd-2.6.33.7-desktop-2mnb.img
  97. }
  98. menuentry 'Mandriva GNU/Linux, with Linux 2.6.33.7-desktop-1mnb' --class mandriva --class gnu-linux --class gnu --class os {
  99.     load_video
  100.     set gfxpayload=keep
  101.     insmod part_msdos
  102.     insmod ext2
  103.     search --no-floppy --label --set=root 2010_1_64_root
  104.     echo    'Loading Linux 2.6.33.7-desktop-1mnb ...'
  105.     linux   /boot/vmlinuz-2.6.33.7-desktop-1mnb root=LABEL=2010_1_64_root ro  splash=verbose
  106.     echo    'Loading initial ramdisk ...'
  107.     initrd  /boot/initrd-2.6.33.7-desktop-1mnb.img
  108. }
  109. menuentry 'Mandriva GNU/Linux, with Linux 2.6.33.7-desktop-1mnb (recovery mode)' --class mandriva --class gnu-linux --class gnu --class os {
  110.     load_video
  111.     set gfxpayload=keep
  112.     insmod part_msdos
  113.     insmod ext2
  114.     search --no-floppy --label --set=root 2010_1_64_root
  115.     echo    'Loading Linux 2.6.33.7-desktop-1mnb ...'
  116.     linux   /boot/vmlinuz-2.6.33.7-desktop-1mnb root=LABEL=2010_1_64_root ro single
  117.     echo    'Loading initial ramdisk ...'
  118.     initrd  /boot/initrd-2.6.33.7-desktop-1mnb.img
  119. }
  120. menuentry 'Mandriva GNU/Linux, with Linux desktop' --class mandriva --class gnu-linux --class gnu --class os {
  121.     load_video
  122.     insmod part_msdos
  123.     insmod ext2
  124.     search --no-floppy --label --set=root 2010_1_64_root
  125.     echo    'Loading Linux desktop ...'
  126.     linux   /boot/vmlinuz-desktop root=LABEL=2010_1_64_root ro  splash=verbose
  127.     echo    'Loading initial ramdisk ...'
  128.     initrd  /boot/initrd-desktop.img
  129. }
  130. menuentry 'Mandriva GNU/Linux, with Linux desktop (recovery mode)' --class mandriva --class gnu-linux --class gnu --class os {
  131.     load_video
  132.     insmod part_msdos
  133.     insmod ext2
  134.     search --no-floppy --label --set=root 2010_1_64_root
  135.     echo    'Loading Linux desktop ...'
  136.     linux   /boot/vmlinuz-desktop root=LABEL=2010_1_64_root ro single
  137.     echo    'Loading initial ramdisk ...'
  138.     initrd  /boot/initrd-desktop.img
  139. }
  140. ### END /etc/grub.d/10_linux ###
  141.  
  142. ### BEGIN /etc/grub.d/20_linux_xen ###
  143. ### END /etc/grub.d/20_linux_xen ###
  144.  
  145. ### BEGIN /etc/grub.d/30_os-prober ###
  146. ### END /etc/grub.d/30_os-prober ###
  147.  
  148. ### BEGIN /etc/grub.d/40_custom ###
  149. # This file provides an easy way to add custom menu entries.  Simply type the
  150. # menu entries you want to add after this comment.  Be careful not to change
  151. # the 'exec tail' line above.
  152. ### END /etc/grub.d/40_custom ###
  153.  
  154. ### BEGIN /etc/grub.d/41_custom ###
  155. if [ -f  $prefix/custom.cfg ]; then
  156.   source $prefix/custom.cfg;
  157. fi
  158. ### END /etc/grub.d/41_custom ###
  159.  
  160. ### BEGIN /etc/grub.d/90_persistent ###
  161. ### END /etc/grub.d/90_persistent ###
  162.  
  163. ===============================================================================
  164. /etc/default/grub
  165. =========================
  166. GRUB_DISTRIBUTOR=Mandriva
  167. GRUB_CMDLINE_LINUX_DEFAULT="splash=verbose"
  168. GRUB_DISABLE_LINUX_RECOVERY=true
  169. GRUB_USE_LABEL=true
  170. GRUB_GFXMODE=640x480
  171. GRUB_THEME=/boot/themes/proto/theme.txt
  172. GRUB_TERMINAL_OUTPUT=gfxterm
  173.  
  174. ==============================================================================
  175. theme.txt
  176. ========================
  177. # GRUB gfxmenu theme "proto".
  178. # Designed for 640x480 resolution.
  179.  
  180. title-text: "Boot Menu"
  181. title-font: "aqui 11"
  182. status-font: "gelly 11"
  183.  
  184. title-color: "40, 40, 40"
  185. status-color: "200, 200, 200"
  186. status-bg-color: "64, 64, 64"
  187. desktop-image: "bg.png"
  188. desktop-color: "0, 0, 128"
  189.  
  190. terminal-box: "select_blue_*.png"
  191.  
  192. + boot_menu {
  193.    position = (150, 100)
  194.    preferred_size = (340, -1)
  195.    item_font = "edges 10"
  196.    selected_item_font = "edges 10"
  197.    item_color = "0, 0, 96"
  198.    selected_item_color = "0, 0, 0"
  199.    menu_pixmap_style = "menubox_*.png"
  200.    selected_item_pixmap_style = "select_blue_*.png"
  201.    item_height = 12
  202.    icon_width = 16
  203.    icon_height = 16
  204.    item_padding = 7
  205.    item_icon_space = 4
  206.    item_spacing = 7
  207. }
  208.  
  209. + progress_bar
  210. {
  211.    id = "__timeout__"
  212.    position = (80, 393)
  213.    font = "cure 11"
  214.    preferred_size = (500, 24)
  215.    text_color = #000
  216.    fg_color = #CCF
  217.    bg_color = #66B
  218.    border_color = #006
  219. }
  220.  
  221. # Informational message bar at the bottom of the screen.
  222. + vbox {
  223.    position = (10, 440)
  224.    preferred_size = (620, 40)
  225.    + label {
  226.       text="Select an item with the arrow keys and press Enter to boot."
  227.       font="lime 11" color=#FFF
  228.    }
  229.    + label {
  230.       text="Press:  'c' for command line; 't' to switch to non-graphical menu."
  231.       font="lime 11" color=#FFF
  232.    }
  233. }
Add Comment
Please, Sign In to add comment