-else # there is no kernel inside /live/image copy it from /boot
+else
if [ ! -d /usr/share/grml-live/templates/boot/isolinux ] ; then
echo "E: Could not find isolinux directory, can not operate without.
if [ ! -d /usr/share/grml-live/templates/boot/isolinux ] ; then
echo "E: Could not find isolinux directory, can not operate without.
@@ -107,7+107,9 @@ if [ -d "$MOUNT_POINT_"/boot/release ] ; then
fi
# adjust ldbsd.com bootline
fi
# adjust ldbsd.com bootline
-sed -i -e 's#\(.*kernel .*/ldbsd.com\)#\1 set image /boot/addons/bsd4grml/bsd.rd`echo Type "boot" to load MirOS bsd4grml via keeppxe#' "$TFTPD_DATA_DIR_/"addon_*_bsd.cfg
+if ls "$TFTPD_DATA_DIR_/"addon_*_bsd.cfg >/dev/null 2>&1; then
+ sed -i -e 's#\(.*kernel .*/ldbsd.com\)#\1 set image /boot/addons/bsd4grml/bsd.rd`echo Type "boot" to load MirOS bsd4grml via keeppxe#' "$TFTPD_DATA_DIR_/"addon_*_bsd.cfg