Commit 84bb55d0 authored by Michael Shigorin's avatar Michael Shigorin

syslinux: fix gfxboot hook

...to *not* error out if there's no gfxboot at all.
parent fb4bd77f
#!/bin/sh #!/bin/sh
gfxboot_datadir=/usr/share/gfxboot 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`" ### bootlogo="`ls $gfxboot_datadir/*/bootlogo | head -1`" ###
if [ ! -f "$bootlogo" ]; then if [ ! -f "$bootlogo" ]; then
echo "${0##*/} - SKIP: $bootlogo not found" >&2 echo "** bootlogo not found" >&2
ls -alR $gfxboot_datadir ls -alR $gfxboot_datadir
exit 0 exit 0
fi fi
cd "$WORKDIR" cd "$WORKDIR"
mkdir -p syslinux mkdir -p syslinux
cd syslinux cd syslinux
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment