#!/bin/sh
echo 1>&2 "Adding 06_splash"
cat << EOF
# This file allows a GRUB 2 splash screen to appear w/o keystrokes.
# Press the ESC or SHIFT key to display the GRUB menu.
# If no action is taken, the menu will display for GRUB_TIMEOUT before booting.
EOF
# Make sure no recordfail event has occurred, then run the script.
cat << EOF
if [ "x\${timeout}" != "x-1" ]; then
# GRUB colors available in the menu: color1/color2
# black, blue, brown, cyan, dark-gray, green, light-cyan, light-blue, light-green,
# light-gray, light-magenta, light-red, magenta, red, white, yellow
# /black is transparency code for second value
# Samples text/background combinations
# menu_color_normal=light-gray/dark-gray
# menu_color_highlight=yellow/dark-gray
# color_normal=light-gray/dark-gray
# Display splash background. If no welcome message, comment the 'echo' line.
clear
echo "Welcome to Ubuntu - Press the ESC or SHIFT Key to Continue"
sleep --verbose --interruptible $GRUB_HIDDEN_TIMEOUT
fi
EOF
cat << EOF
# Determine if the user interrupted the splash countdown, then boot or display the menu.
if [ \$? = "0" ]; then
set timeout=$GRUB_TIMEOUT
else
set timeout=-1
fi
EOF
Bookmarks