From 634193980aa9b301de779bd57f72726fa55ddc6d Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Sun, 1 Nov 2009 16:47:15 +0100
Subject: Correctly replacing pathes in exithelp.cfg for returning back to
 syslinux menu.

---
 helpers/lh_binary_syslinux | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/helpers/lh_binary_syslinux b/helpers/lh_binary_syslinux
index 29bd339..3f757e6 100755
--- a/helpers/lh_binary_syslinux
+++ b/helpers/lh_binary_syslinux
@@ -315,10 +315,21 @@ Configure_syslinux_templates ()
 		$template_file
 	done
 
-	if [ -f "${SYSLINUX_PATH}/exithelp.cfg" ]
-	then
-		sed -i -e 's/isolinux.cfg/syslinux.cfg/' ${SYSLINUX_PATH}/exithelp.cfg
-	fi
+	case "${LH_BINARY_IMAGES}" in
+		usb-hdd)
+			if [ -f "${SYSLINUX_PATH}/exithelp.cfg" ]
+			then
+				sed -i -e "s|config isolinux.cfg|config syslinux.cfg|" "${SYSLINUX_PATH}"/exithelp.cfg
+			fi
+			;;
+
+		net)
+			if [ -f "${SCREEN_PATH}/exithelp.cfg" ]
+			then
+				sed -i -e "s|config isolinux.cfg|config ${LIVE_KERNEL_PATH}/pxelinux.cfg/default|" "${SCREEN_PATH}"/exithelp.cfg
+			fi
+			;;
+	esac
 
 	# Syslinux v3.31 in etch does not support include statements
 	if [ "${LH_DISTRIBUTION}" = "etch" ]
-- 
cgit v1.0