--- trunk/create-clonezilla-sysresccd/files/prerun.toram 2010/05/20 12:38:55 48 +++ trunk/create-clonezilla-sysresccd/files/prerun.toram 2010/08/13 14:09:29 95 @@ -1,3 +1,4 @@ + #!/bin/sh ############################################################################## # # @@ -42,7 +43,7 @@ # replace /live/image/restorecd with $restorecdFiles # echo -n " Copying new scripts... " -for script in what-cd continue-multi-cd reloc-img imginfo imgconvert sbminst;do +for script in what-cd patch-clonezilla-sysresccd continue-multi-cd reloc-img imginfo imgconvert sbminst;do cp /live/image/restorecd/"$script" /usr/bin 2>/dev/null chmod +x /usr/bin/"$script" 2>/dev/null done @@ -50,6 +51,10 @@ cp /live/image/restorecd/cust-menu /opt/drbl/sbin chmod +x opt/drbl/sbin/ocs-iso chmod +x opt/drbl/sbin/cust-menu +# add cust-menu execution command to zip file creation script +sed '/echo "Packing the output file $output_filename..."/i\ +cust-menu -z -publisher "DRBL/Clonezilla http://drbl.name http://clonezilla.org" -z -V "$iso_label_tag" "$ORIGINAL_INSERT_MODE"' /opt/drbl/sbin/ocs-live-dev > /opt/drbl/sbin/ocs-live-dev.tmp && mv /opt/drbl/sbin/ocs-live-dev.tmp /opt/drbl/sbin/ocs-live-dev +chmod +x /opt/drbl/sbin/ocs-live-dev setterm -foreground green;echo 'done';setterm -foreground white setterm -foreground yellow