1 |
|
|
2 |
#!/bin/sh |
#!/bin/sh |
3 |
############################################################################## |
############################################################################## |
4 |
# # |
# # |
43 |
# replace /live/image/restorecd with $restorecdFiles |
# replace /live/image/restorecd with $restorecdFiles |
44 |
# |
# |
45 |
echo -n " Copying new scripts... " |
echo -n " Copying new scripts... " |
46 |
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 |
47 |
cp /live/image/restorecd/"$script" /usr/bin 2>/dev/null |
cp /live/image/restorecd/"$script" /usr/bin 2>/dev/null |
48 |
chmod +x /usr/bin/"$script" 2>/dev/null |
chmod +x /usr/bin/"$script" 2>/dev/null |
49 |
done |
done |
51 |
cp /live/image/restorecd/cust-menu /opt/drbl/sbin |
cp /live/image/restorecd/cust-menu /opt/drbl/sbin |
52 |
chmod +x opt/drbl/sbin/ocs-iso |
chmod +x opt/drbl/sbin/ocs-iso |
53 |
chmod +x opt/drbl/sbin/cust-menu |
chmod +x opt/drbl/sbin/cust-menu |
54 |
|
# add cust-menu execution command to zip file creation script |
55 |
|
sed '/echo "Packing the output file $output_filename..."/i\ |
56 |
|
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 |
57 |
|
chmod +x /opt/drbl/sbin/ocs-live-dev |
58 |
setterm -foreground green;echo 'done';setterm -foreground white |
setterm -foreground green;echo 'done';setterm -foreground white |
59 |
|
|
60 |
setterm -foreground yellow |
setterm -foreground yellow |