* util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg

as *.jpg.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-04-09 17:44:03 +02:00
parent d7c43ba1c0
commit e215d8e02a
2 changed files with 12 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
as *.jpg.
2010-04-09 Mario Vazquez <mariovazq@gmail.com> 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
GRUB_BACKGROUND support. GRUB_BACKGROUND support.

View file

@ -84,22 +84,22 @@ fi
if [ "x$gfxterm" = x1 ]; then if [ "x$gfxterm" = x1 ]; then
# Make the font accessible # Make the font accessible
prepare_grub_to_access_device `${grub_probe} --target=device ${GRUB_FONT_PATH}` prepare_grub_to_access_device `${grub_probe} --target=device "${GRUB_FONT_PATH}"`
cat << EOF cat << EOF
if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then if loadfont `make_system_path_relative_to_its_root "${GRUB_FONT_PATH}"` ; then
set gfxmode=${GRUB_GFXMODE} set gfxmode=${GRUB_GFXMODE}
insmod gfxterm insmod gfxterm
insmod ${GRUB_VIDEO_BACKEND} insmod ${GRUB_VIDEO_BACKEND}
EOF EOF
if [ x$GRUB_THEME != x ] && [ -f $GRUB_THEME ] \ if [ "x$GRUB_THEME" != x ] && [ -f "$GRUB_THEME" ] \
&& is_path_readable_by_grub $GRUB_THEME; then && is_path_readable_by_grub "$GRUB_THEME"; then
echo "Found theme: $GRUB_THEME" >&2 echo "Found theme: $GRUB_THEME" >&2
prepare_grub_to_access_device `${grub_probe} --target=device $GRUB_THEME` | sed -e "s/^/ /" prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_THEME"` | sed -e "s/^/ /"
cat << EOF cat << EOF
insmod gfxmenu insmod gfxmenu
EOF EOF
themedir="`dirname $GRUB_THEME`" themedir="`dirname "$GRUB_THEME"`"
for x in "$themedir"/*.pf2 "$themedir"/f/*.pf2; do for x in "$themedir"/*.pf2 "$themedir"/f/*.pf2; do
if [ -f "$x" ]; then if [ -f "$x" ]; then
cat << EOF cat << EOF
@ -107,7 +107,7 @@ EOF
EOF EOF
fi fi
done done
if [ x"`echo "$themedir"/*.jpg`" != x"$themedir/*.jpg" ]; then if [ x"`echo "$themedir"/*.jpg`" != x"$themedir/*.jpg" ] || [ x"`echo "$themedir"/*.jpeg`" != x"$themedir/*.jpeg" ]; then
cat << EOF cat << EOF
insmod jpeg insmod jpeg
EOF EOF