/[clonezilla-sysresccd]/trunk/create-clonezilla-sysresccd/files/prerun.normal
ViewVC logotype

Annotation of /trunk/create-clonezilla-sysresccd/files/prerun.normal

Parent Directory Parent Directory | Revision Log Revision Log


Revision 68 - (hide annotations)
Sun May 30 20:11:06 2010 UTC (10 years, 11 months ago) by sng
File size: 2842 byte(s)
- adding restorcd/ and docs to Clonezilla's squashfs file. This way all
  items are always available (even when booting to RAM)
- adding a otherpage class section on clonezilla.html

1 sng 47 #!/bin/sh
2 sng 48 ##############################################################################
3     # #
4 sng 64 # prerun.normal, (C) 2007-2010 S. Georgaras <sng@hellug.gr> #
5 sng 48 # #
6     # This file is part of Clonezilla-SysRescCD. #
7     # #
8     # Clonezilla-SysRescCD is free software: you can redistribute it and/or #
9     # modify it under the terms of the GNU General Public License as published #
10     # by 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 along #
19     # with Clonezilla-SysRescCD. If not, see <http://www.gnu.org/licenses/>. #
20     # #
21     ##############################################################################
22    
23 sng 47 setterm -foreground yellow
24     echo '
25     ##########################################'
26     setterm -foreground white
27     echo -n " Modifying .bashrc ... "
28     echo >> /root/.bashrc
29     echo "##########################################" >> /root/.bashrc
30     echo "# aliases by Spiros" >> /root/.bashrc
31     echo "##########################################" >> /root/.bashrc
32     echo "# aliases..." >> /root/.bashrc
33     echo "alias ls='ls --color'" >> /root/.bashrc
34     echo "alias lf='ls -F --color'" >> /root/.bashrc
35     echo "alias l='ls -la --color'" >> /root/.bashrc
36     echo "##########################################" >> /root/.bashrc
37     setterm -foreground green;echo 'done';setterm -foreground white
38    
39    
40     #
41 sng 68 # replace /restorecd with $restorecdFiles
42 sng 47 #
43     echo -n " Copying new scripts... "
44 sng 64 for script in what-cd patch-clonezilla-sysresccd continue-multi-cd reloc-img imginfo imgconvert sbminst;do
45 sng 68 cp /restorecd/"$script" /usr/bin 2>/dev/null
46 sng 47 chmod +x /usr/bin/"$script" 2>/dev/null
47     done
48 sng 68 cp /restorecd/ocs-iso /opt/drbl/sbin
49     cp /restorecd/cust-menu /opt/drbl/sbin
50 sng 47 chmod +x opt/drbl/sbin/ocs-iso
51     chmod +x opt/drbl/sbin/cust-menu
52     setterm -foreground green;echo 'done';setterm -foreground white
53    
54     setterm -foreground yellow
55     echo '##########################################
56     '
57     setterm -foreground white
58    

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26