19 |
# with Clonezilla-SysRescCD. If not, see <http://www.gnu.org/licenses/>. # |
# with Clonezilla-SysRescCD. If not, see <http://www.gnu.org/licenses/>. # |
20 |
# # |
# # |
21 |
############################################################################## |
############################################################################## |
22 |
|
if [ -e /root/.prerunExecuted ];then |
23 |
|
# This has to be executed only once |
24 |
|
exit |
25 |
|
fi |
26 |
|
touch /root/.prerunExecuted |
27 |
setterm -foreground yellow |
setterm -foreground yellow |
28 |
echo ' |
echo ' |
29 |
##########################################' |
##########################################' |
54 |
chmod +x /opt/drbl/sbin/ocs-iso |
chmod +x /opt/drbl/sbin/ocs-iso |
55 |
chmod +x /opt/drbl/sbin/cust-menu |
chmod +x /opt/drbl/sbin/cust-menu |
56 |
# add cust-menu execution command to zip file creation script |
# add cust-menu execution command to zip file creation script |
57 |
sed '/echo "Packing the output file $output_filename..."/i\ |
sed '/^cust-menu -z -publisher/d' /opt/drbl/sbin/ocs-live-dev | sed '/echo "Packing the output file $output_filename..."/i\ |
58 |
cust-menu -z -publisher "DRBL/Clonezilla http://drbl.name http://clonezilla.org" -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 |
cust-menu -z -publisher "DRBL/Clonezilla http://drbl.name http://clonezilla.org" -V "$iso_label_tag" "$ORIGINAL_INSERT_MODE"' > /opt/drbl/sbin/ocs-live-dev.tmp && mv /opt/drbl/sbin/ocs-live-dev.tmp /opt/drbl/sbin/ocs-live-dev |
59 |
chmod +x /opt/drbl/sbin/ocs-live-dev |
chmod +x /opt/drbl/sbin/ocs-live-dev |
60 |
setterm -foreground green;echo 'done';setterm -foreground white |
setterm -foreground green;echo 'done';setterm -foreground white |
61 |
|
|