]>
git.proxmox.com Git - grub2.git/blob - util/grub.d/00_header.in
3 # update-grub helper script.
4 # Copyright (C) 2006,2007 Free Software Foundation, Inc.
6 # GRUB is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # GRUB is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with GRUB. If not, see <http://www.gnu.org/licenses/>.
20 exec_prefix
=@exec_prefix@
24 # for convert_system_path_to_grub_path()
25 .
${libdir}/grub
/update-grub_lib
27 if [ "x${GRUB_DEFAULT}" = "x" ] ; then GRUB_DEFAULT
=0 ; fi
28 if [ "x${GRUB_TIMEOUT}" = "x" ] ; then GRUB_TIMEOUT
=5 ; fi
31 set default=${GRUB_DEFAULT}
32 set timeout=${GRUB_TIMEOUT}
35 if [ "x${GRUB_DRIVE}" = "x" ] ; then : ; else
36 echo "set root=${GRUB_DRIVE}"
39 if [ "x${GRUB_FONT_PATH}" = "x" ] ; then : ; else
40 echo "font ${GRUB_FONT_PATH}"
43 case ${platform}:${GRUB_TERMINAL} in
44 pc
:gfxterm
) cat << EOF
51 if [ "x${GRUB_SERIAL_COMMAND}" = "x" ] ; then
52 echo "Warning, requested serial terminal but GRUB_SERIAL_COMMAND is unspecified. Default parameters will be used." >&2
53 GRUB_SERIAL_COMMAND
=serial
55 echo "${GRUB_SERIAL_COMMAND}"
59 echo "terminal ${GRUB_TERMINAL}"