/[clonezilla-sysresccd]/trunk/create-clonezilla-sysresccd/files/isofiles/pack-them
ViewVC logotype

Annotation of /trunk/create-clonezilla-sysresccd/files/isofiles/pack-them

Parent Directory Parent Directory | Revision Log Revision Log


Revision 93 - (hide annotations)
Fri Aug 13 08:30:37 2010 UTC (10 years, 8 months ago) by sng
File size: 1711 byte(s)
updating stuff for latest Clonezilla release

1 sng 48 #!/bin/bash
2     ##############################################################################
3     #
4     # pack-them, (C) 2007-2010 S. Georgaras <sng@hellug.gr>
5     #
6     # This file is part of Clonezilla-SysRescCD.
7     #
8     # Clonezilla-SysRescCD is free software: you can redistribute it and/or modify
9     # it under the terms of the GNU General Public License as published by
10     # the Free Software Foundation, either version 2 of the License, or
11     # (at your option) any later version.
12     #
13     # Clonezilla-SysRescCD is distributed in the hope that it will be useful,
14     # but WITHOUT ANY WARRANTY; without even the implied warranty of
15     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16     # GNU General Public License for more details.
17     #
18     # You should have received a copy of the GNU General Public License
19     # along with Clonezilla-SysRescCD. If not, see <http://www.gnu.org/licenses/>.
20     #
21     ##############################################################################
22    
23     echo -n "Packing menu isolinux files... "
24     mkdir forCD
25 sng 61 # cp -L *msg *cfg forCD
26     cp -L *cfg forCD
27 sng 48 cd forCD
28 sng 93 mkdir isolinux syslinux
29 sng 61 # cp -L *msg *cfg isolinux
30     cp -L *cfg isolinux
31 sng 48 cd isolinux
32     for n in *.cfg;do
33 sng 93 sed 's|isolinux.cfg|syslinux.cfg|' $n > ../syslinux/$n
34 sng 48 done
35 sng 93 sed 's|hd1|hd2|' isolinux.cfg | sed 's|hd0|hd1|' | sed 's|isolinux.cfg|syslinux.cfg|' > ../syslinux/syslinux.cfg
36     sed 's|initrd=initram.igz|initrd=initram.igz scandelay=5|' sysresc.cfg | sed 's|isolinux.cfg|syslinux.cfg|' > ../syslinux/sysresc.cfg
37     rm ../syslinux/isolinux.cfg
38 sng 48 cd ..
39     rm isolinux.cfg
40 sng 93 rm ../menu-for-iso.tar.gz 2>/dev/null
41     # tar czhf ../../menu-for-iso.tar.gz *msg *cfg isolinux/*cfg isolinux/*msg
42     tar czhf ../../menu-for-iso.tar.gz syslinux/*cfg isolinux/*cfg
43 sng 48 cd ..
44     rm -rf forCD
45     echo 'done'

Properties

Name Value
svn:executable *

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26