1 |
|
|
2 |
#!/bin/sh |
#!/bin/sh |
3 |
|
############################################################################## |
4 |
|
# # |
5 |
|
# prerun.toram, (C) 2007-2010 S. Georgaras <sng@hellug.gr> # |
6 |
|
# # |
7 |
|
# This file is part of Clonezilla-SysRescCD. # |
8 |
|
# # |
9 |
|
# Clonezilla-SysRescCD is free software: you can redistribute it and/or # |
10 |
|
# modify it under the terms of the GNU General Public License as published # |
11 |
|
# by the Free Software Foundation, either version 2 of the License, or # |
12 |
|
# (at your option) any later version. # |
13 |
|
# # |
14 |
|
# Clonezilla-SysRescCD is distributed in the hope that it will be useful, # |
15 |
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of # |
16 |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # |
17 |
|
# GNU General Public License for more details. # |
18 |
|
# # |
19 |
|
# You should have received a copy of the GNU General Public License along # |
20 |
|
# with Clonezilla-SysRescCD. If not, see <http://www.gnu.org/licenses/>. # |
21 |
|
# # |
22 |
|
############################################################################## |
23 |
|
|
24 |
setterm -foreground yellow |
setterm -foreground yellow |
25 |
echo ' |
echo ' |
26 |
##########################################' |
##########################################' |
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 |
114 |
setterm -foreground green |
setterm -foreground green |
115 |
echo 'done |
echo 'done |
116 |
' |
' |
|
setterm -foreground white |
|
117 |
|
setterm -foreground white |