/[clonezilla-sysresccd]/trunk/create-clonezilla-sysresccd/scripts/update-cfgs
ViewVC logotype

Contents of /trunk/create-clonezilla-sysresccd/scripts/update-cfgs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 190 - (show annotations)
Sun Aug 26 14:25:43 2012 UTC (11 years, 7 months ago) by sng
File size: 1784 byte(s)
updating cfg files (removed rannish and dban from tools),
changing menu selection color, renamed pack-them to 
update-cfgs (script to create a tarball containing CFGs

1 #!/bin/bash
2 ##############################################################################
3 #
4 # pack-them, (C) 2007-2010 S. Georgaras <sng@hellug.gr>
5 # update-cfgs, (C) 2012 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 modify
10 # it under the terms of the GNU General Public License as published by
11 # 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
20 # along with Clonezilla-SysRescCD. If not, see <http://www.gnu.org/licenses/>.
21 #
22 ##############################################################################
23 cd ../files/isofiles
24 echo -n "Packing menu isolinux files... "
25 mkdir forCD
26 # cp -L *msg *cfg forCD
27 cp -L *cfg forCD
28 cd forCD
29 mkdir isolinux syslinux
30 # cp -L *msg *cfg isolinux
31 cp -L *cfg isolinux
32 cd isolinux
33 for n in *.cfg;do
34 sed 's|isolinux.cfg|syslinux.cfg|' $n > ../syslinux/$n
35 done
36 sed 's|hd1|hd2|' isolinux.cfg | sed 's|hd0|hd1|' | sed 's|isolinux.cfg|syslinux.cfg|' > ../syslinux/syslinux.cfg
37 sed 's|initrd=initram.igz|initrd=initram.igz scandelay=5|' sysresc.cfg | sed 's|isolinux.cfg|syslinux.cfg|' > ../syslinux/sysresc.cfg
38 rm ../syslinux/isolinux.cfg
39 cd ..
40 rm isolinux.cfg
41 rm ../menu-for-iso.tar.gz 2>/dev/null
42 # tar czhf ../../menu-for-iso.tar.gz *msg *cfg isolinux/*cfg isolinux/*msg
43 tar czhf ../../menu-for-iso.tar.gz syslinux/*cfg isolinux/*cfg
44 cd ..
45 rm -rf forCD
46 echo 'done'

Properties

Name Value
svn:executable *

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26