lh_binary_syslinux: always put splash image as splash.{rle,png} to avoid filename issues

This commit is contained in:
Otavio Salvador 2007-10-15 21:23:08 -02:00
parent 763a576d88
commit b1d10e6a28
1 changed files with 20 additions and 21 deletions

View File

@ -211,32 +211,31 @@ Copy_syslinux_templates ()
# Copying custom splash screen # Copying custom splash screen
if [ "${LH_SYSLINUX_SPLASH}" = "none" ] if [ "${LH_SYSLINUX_SPLASH}" = "none" ]
then then
# no splash screen # no splash screen
SPLASH="" SPLASH=""
rm -f ${SCREEN_PATH}/splash.rle rm -f ${SCREEN_PATH}/splash.rle
rm -f ${DATA_PATH}/splash.png rm -f ${DATA_PATH}/splash.png
else else
if [ -z "${LH_SYSLINUX_SPLASH}" ] if [ "${LH_SYSLINUX_MENU}" = "disabled" ]
then then
if [ "${LH_SYSLINUX_MENU}" = "disabled" ] SPLASH="${LIVE_DATA_PATH}/splash.rle"
then else
SPLASH="${LIVE_DATA_PATH}/splash.rle" SPLASH="${LIVE_DATA_PATH}/splash.png"
else
SPLASH="${LIVE_DATA_PATH}/splash.png"
fi fi
else
if [ ! -e "${LH_SYSLINUX_SPLASH}" ] if [ -n "${LH_SYSLINUX_SPLASH}" ]
then then
Echo_error "${LH_SYSLINUX_SPLASH} doen't exist" if [ ! -e "${LH_SYSLINUX_SPLASH}" ]
exit 1 then
else Echo_error "${LH_SYSLINUX_SPLASH} doen't exist"
rm -f ${SCREEN_PATH}/splash.rle exit 1
rm -f ${DATA_PATH}/splash.png else
cp -f "${LH_SYSLINUX_SPLASH}" ${DATA_PATH} rm -f ${SCREEN_PATH}/splash.rle
SPLASH="${LIVE_DATA_PATH}/$(basename ${LH_SYSLINUX_SPLASH})" rm -f ${DATA_PATH}/splash.png
fi cp -f "${LH_SYSLINUX_SPLASH}" ${DATA_PATH}/`basename ${SPLASH}`
fi fi
fi fi
fi
} }
Configure_syslinux_templates () Configure_syslinux_templates ()