#!/bin/sh
set -e

# grub-mkconfig helper script.
# Copyright (C) 2010  Alexander Kurtz <kurtz.alex@googlemail.com>
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB.  If not, see <http://www.gnu.org/licenses/>.

# Include the GRUB helper library for grub-mkconfig.
. /usr/share/grub/grub-mkconfig_lib

# We want to work in /boot/grub/ only.
test -d /boot/grub; cd /boot/grub


#echo "background_image /boot/grub/xlinux-background-640x480.png"
#echo "set menu_color_highlight=black/white"
#echo "set menu_color_normal=white/black"
#echo "set color_normal=light-green/black"
#echo "set timeout=5"


#echo "set timeout=3"
#echo "set distributor=\"XLinux Rolling Release\""
#echo "set cmdline_linux_default=\"quiet splash\""
#echo "set gfxmode=1024x768x16"

cat <<EOF

background_image /boot/grub/xlinux-background-640x480.png
set menu_color_highlight=black/white
set menu_color_normal=white/black
set color_normal=light-green/black
set timeout=3
set distributor="XLinux Rolling Release"
set cmdline_linux_default="quiet splash"
set cmdline_linux="quiet splash"
set gfxmode=1024x768x16
set gfxpayload=1024x768x16

EOF
