|
|
|
1 |
#!/bin/sh |
#!/bin/sh |
2 |
############################################################################## |
############################################################################## |
3 |
# # |
# # |
42 |
|
|
43 |
|
|
44 |
|
|
|
# |
|
|
# replace /live/image/restorecd with $restorecdFiles |
|
|
# |
|
|
echo -n " Copying new scripts... " |
|
|
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 |
|
|
cp /live/image/restorecd/ocs-iso /opt/drbl/sbin |
|
|
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 '/^cust-menu -z -publisher/d' /opt/drbl/sbin/ocs-live-dev | sed '/echo "Packing the output file $output_filename..."/i\ |
|
|
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 |
|
|
chmod +x /opt/drbl/sbin/ocs-live-dev |
|
|
setterm -foreground green;echo 'done';setterm -foreground white |
|
45 |
|
|
46 |
setterm -foreground yellow |
echo -n " Trying to determine and mount your CD-ROM... " |
|
echo '########################################## |
|
|
' |
|
|
setterm -foreground white |
|
|
# |
|
|
# execute S09mountcd |
|
|
# |
|
|
# only when auto-restore and load to RAM |
|
|
# |
|
|
# |
|
|
echo |
|
|
echo -n "Trying to determine and mount your CD-ROM... " |
|
47 |
rm -rf /home/partimag 2>/dev/null |
rm -rf /home/partimag 2>/dev/null |
48 |
mkdir /home/partimag |
mkdir /home/partimag |
49 |
|
|
87 |
fi |
fi |
88 |
|
|
89 |
setterm -foreground green |
setterm -foreground green |
90 |
echo 'done |
echo 'done' |
91 |
|
|
92 |
|
setterm -foreground white |
93 |
|
|
94 |
|
# |
95 |
|
# replace /home/partimag/restorecd with $restorecdFiles |
96 |
|
# |
97 |
|
echo -n " Copying new scripts... " |
98 |
|
for script in what-cd patch-clonezilla-sysresccd continue-multi-cd reloc-img imginfo imgconvert sbminst;do |
99 |
|
cp /home/partimag/restorecd/"$script" /usr/bin 2>/dev/null |
100 |
|
chmod +x /usr/bin/"$script" 2>/dev/null |
101 |
|
done |
102 |
|
cp /home/partimag/restorecd/ocs-iso /opt/drbl/sbin |
103 |
|
cp /home/partimag/restorecd/cust-menu /opt/drbl/sbin |
104 |
|
chmod +x /opt/drbl/sbin/ocs-iso |
105 |
|
chmod +x /opt/drbl/sbin/cust-menu |
106 |
|
# add cust-menu execution command to zip file creation script |
107 |
|
sed '/^cust-menu -z -publisher/d' /opt/drbl/sbin/ocs-live-dev | sed '/echo "Packing the output file $output_filename..."/i\ |
108 |
|
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 |
109 |
|
chmod +x /opt/drbl/sbin/ocs-live-dev |
110 |
|
setterm -foreground green;echo 'done';setterm -foreground white |
111 |
|
|
112 |
|
setterm -foreground yellow |
113 |
|
echo '########################################## |
114 |
' |
' |
115 |
setterm -foreground white |
setterm -foreground white |
116 |
|
echo |
117 |
|
|