/[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 58 - (hide annotations)
Tue May 25 09:02:17 2010 UTC (11 years, 5 months ago) by sng
File size: 1532 byte(s)
Working on new SystemRescueCD CFG file and fixing misc stuff

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 58 cp -L *msg *cfg forCD
26 sng 48 cd forCD
27     mkdir isolinux
28 sng 58 cp -L *msg *cfg isolinux
29 sng 48 cd isolinux
30     for n in *.cfg;do
31     sed 's|isolinux.cfg|syslinux.cfg|' $n > ../$n
32     done
33     sed 's|hd1|hd2|' isolinux.cfg | sed 's|hd0|hd1|' | sed 's|isolinux.cfg|syslinux.cfg|' > ../syslinux.cfg
34     sed 's|initrd=initram.igz|initrd=initram.igz scandelay=5|' sysresc.cfg | sed 's|isolinux.cfg|syslinux.cfg|' > ../sysresc.cfg
35     cd ..
36     rm isolinux.cfg
37     rm ../menu-iso.tar.gz 2>/dev/null
38 sng 58 tar czhf ../../menu-iso.tar.gz *msg *cfg isolinux/*cfg isolinux/*msg
39 sng 48 cd ..
40     rm -rf forCD
41     echo 'done'

Properties

Name Value
svn:executable *

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26