--- trunk/create-clonezilla-sysresccd/files/cust-menu 2010/05/20 12:12:53 47 +++ trunk/create-clonezilla-sysresccd/files/cust-menu 2010/07/15 20:54:27 84 @@ -91,25 +91,25 @@ # # # # # # # # # the CFG file can be found as -# # # /tmp/isolnx.*/isolinux/isolinux.cfg +# # # /tmp/*/isolinux/isolinux.cfg # # # or -# # # /home/partimag/usb-dev.*/syslinux/syslinux.cfg +# # # /home/partimag/*/isolinux/isolinux.cfg # # # # # # -if [ -e /tmp/isolnx.*/isolinux/isolinux.cfg ];then + +if [ -e /tmp/*/isolinux/isolinux.cfg ];then type=ISO - origCFG="/tmp/isolnx.*/isolinux/isolinux.cfg" -elif [ -e /home/partimag/usb-dev.*/syslinux/syslinux.cfg ];then + origCFG="/tmp/*/isolinux/isolinux.cfg" +elif [ -e /home/partimag/*/isolinux/isolinux.cfg ];then type=ZIP - origCFG="/home/partimag/usb-dev.*/syslinux/syslinux.cfg" + origCFG="/home/partimag/*/isolinux/isolinux.cfg" else origCFG='' type=ZIP - -# dialog --backtitle Clonezilla-SysRescCD --title " Execution Error " --msgbox "This is not a stand-alone script and should not be executed by the command line -# -# This script will terminate now" 0 0 -# exit 1 + dialog --backtitle Clonezilla-SysRescCD --title " Execution Error " --msgbox "This is not a stand-alone script and should not be executed by the command line + + This script will terminate now" 0 0 + exit 1 fi @@ -229,6 +229,7 @@ + if [ -n "$menuTitle" ];then sed "s|^ *MENU TITLE .*|MENU TITLE $menuTitle|" "$inFile" > "$inFile".$$ && mv "$inFile".$$ "$inFile" fi @@ -272,11 +273,17 @@ if [ "$type" = "ISO" ];then - cp "$inFile" /tmp/isolnx.*/isolinux/isolinux.cfg - cp "$bootImg" /tmp/isolnx.*/isolinux + cp "$inFile" /tmp/*/isolinux/isolinux.cfg + cp "$bootImg" /tmp/*/isolinux else - cp "$inFile" /home/partimag/usb-dev.*/syslinux/syslinux.cfg - cp "$bootImg" /home/partimag/usb-dev.* +# cp "$inFile" /home/partimag/*/syslinux/syslinux.cfg +# cp "$bootImg" /home/partimag/usb-dev.* +#fi +# +#if [ "$type" = "ZIP" ];then + SYSLINUX_FILE=`echo "$origCFG" | sed 's{isolinux{syslinux{g'` + sed "$inFile" | sed '{noprompt {{g' > "$SYSLINUX_FILE" + cp "$bootImg" `dirname "$SYSLINUX_FILE"` fi rm "$inFile"