syslinux: fix gfxboot hook

...to *not* error out if there's no gfxboot at all.
This commit is contained in:
Michael Shigorin 2016-04-20 16:58:01 +03:00
parent fb4bd77f20
commit 84bb55d09f

View File

@ -1,13 +1,20 @@
#!/bin/sh
gfxboot_datadir=/usr/share/gfxboot
if [ ! -d "$gfxboot_datadir" ]; then
echo "** $gfxboot_datadir not found" >&2
exit 0
fi
bootlogo="`ls $gfxboot_datadir/*/bootlogo | head -1`" ###
if [ ! -f "$bootlogo" ]; then
echo "${0##*/} - SKIP: $bootlogo not found" >&2
echo "** bootlogo not found" >&2
ls -alR $gfxboot_datadir
exit 0
fi
cd "$WORKDIR"
mkdir -p syslinux
cd syslinux