--- trunk/create-clonezilla-sysresccd/files/prerun.toram 2010/05/20 12:12:53 47 +++ trunk/create-clonezilla-sysresccd/files/prerun.toram 2010/07/15 20:54:27 84 @@ -1,4 +1,26 @@ + #!/bin/sh +############################################################################## +# # +# prerun.toram, (C) 2007-2010 S. Georgaras # +# # +# This file is part of Clonezilla-SysRescCD. # +# # +# Clonezilla-SysRescCD is free software: you can redistribute it and/or # +# modify it under the terms of the GNU General Public License as published # +# by the Free Software Foundation, either version 2 of the License, or # +# (at your option) any later version. # +# # +# Clonezilla-SysRescCD is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License along # +# with Clonezilla-SysRescCD. If not, see . # +# # +############################################################################## + setterm -foreground yellow echo ' ##########################################' @@ -21,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 @@ -29,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 -publisher "DRBL/Clonezilla http://drbl.name http://clonezilla.org" -V "$iso_label_tag"' /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 @@ -88,4 +114,4 @@ setterm -foreground green echo 'done ' -setterm -foreground white \ No newline at end of file +setterm -foreground white