Subversion Repositories livecd

Rev

Rev 306 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 306 Rev 314
1
########################################################################
1
########################################################################
2
#
2
#
3
# sl6-doc.ks
3
# sl6-doc.ks
4
#
4
#
5
# Create /usr/share/doc/HTML/index.html 
5
# Create /usr/share/doc/HTML/index.html 
6
# A short documentation for Scientific Linux Live CD/DVD
6
# A short documentation for Scientific Linux Live CD/DVD
7
#
7
#
8
########################################################################
8
########################################################################
9
 
9
 
10
%post
10
%post
11
 
11
 
-
 
12
# get SL release version
-
 
13
version=$( grep -o [0-9].[0-9] /etc/redhat-release )
-
 
14
 
12
# get sl logo
15
# get SL logo
13
cp /usr/share/doc/sl-release-notes-6.0/images/sl-logo-96.png /usr/share/doc/HTML/sl-logo-96.png
16
cp /usr/share/doc/sl-release-notes-$version/images/sl-logo-96.png /usr/share/doc/HTML/sl-logo-96.png
14
if [ ! -e /usr/share/doc/HTML/sl-logo-96.png ]; then
17
if [ ! -e /usr/share/doc/HTML/sl-logo-96.png ]; then
15
   wget --timeout=20 http://131.225.111.32/documentation/graphics/logo/sl-logo-96.png -O /usr/share/doc/HTML/sl-logo-96.png
18
   wget --timeout=20 http://131.225.111.32/documentation/graphics/logo/sl-logo-96.png -O /usr/share/doc/HTML/sl-logo-96.png
16
fi
19
fi
17
if [ ! -e /usr/share/doc/HTML/sl-logo-96.png ]; then
20
if [ ! -e /usr/share/doc/HTML/sl-logo-96.png ]; then
18
   wget --timeout=20 http://129.132.221.163/sl-logo-96.png -O /usr/share/doc/HTML/sl-logo-96.png
21
   wget --timeout=20 http://129.132.221.163/sl-logo-96.png -O /usr/share/doc/HTML/sl-logo-96.png
19
fi
22
fi
20
 
23
 
21
cat > /usr/share/doc/HTML/index.html << EOF
24
cat > /usr/share/doc/HTML/index.html << EOF
22
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
25
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
23
<html>
26
<html>
24
<head>
27
<head>
25
<title>Scientific Linux 6.0 Live</title>
28
<title>Scientific Linux ${version} Live</title>
26
<style type="text/css" media="all">@import "layout.css";</style>
29
<style type="text/css" media="all">@import "layout.css";</style>
27
</head>
30
</head>
28
<body>
31
<body>
29
<center>
32
<center>
30
<img SRC='sl-logo-96.png' ALT='SL-Logo'><br><br>
33
<img SRC='sl-logo-96.png' ALT='SL-Logo'><br><br>
31
<h1>Welcome to Scientific Linux 6.0 Live</h1>
34
<h1>Welcome to Scientific Linux ${version} Live</h1>
32
</center>
35
</center>
33
<p>The <b>Scientific Linux Live CD/DVD</b> is a bootable CD/DVD that runs Linux directly from
36
<p>The <b>Scientific Linux Live CD/DVD</b> is a bootable CD/DVD that runs Linux directly from
34
CD/DVD without installing. It is based on <a href="https://www.scientificlinux.org/"> Scientific Linux</a> (SL),
37
CD/DVD without installing. It is based on <a href="https://www.scientificlinux.org/"> Scientific Linux</a> (SL),
35
which is recompiled from <a href="http://www.redhat.com/software/rhel/">RedHat Enterprise Linux</a> (RHEL) sources.<br>
38
which is recompiled from <a href="http://www.redhat.com/software/rhel/">RedHat Enterprise Linux</a> (RHEL) sources.<br>
36
The Live CD/DVD has a read-write rootfs and squashfs provides on-the-fly decompression that allows to store 
39
The Live CD/DVD has a read-write rootfs and squashfs provides on-the-fly decompression that allows to store 
37
2 GB software on a normal CD-ROM. It can be installed on hard disk or usb drive with persistent changes.
40
2 GB software on a normal CD-ROM. It can be installed on hard disk or usb drive with persistent changes.
38
The Live CD/DVDs were built using the <a href="http://fedoraproject.org/wiki/FedoraLiveCD">Fedora LiveCD Tools</a>.</p>
41
The Live CD/DVDs were built using the <a href="http://fedoraproject.org/wiki/FedoraLiveCD">Fedora LiveCD Tools</a>.</p>
39
<p>For more information visit the <a href="http://www.livecd.ethz.ch/">Scientific Linux Live Homepage</a>.</p>
42
<p>For more information visit the <a href="http://www.livecd.ethz.ch/">Scientific Linux Live Homepage</a>.</p>
40
<p align=right>Last modified: Friday, 04-March-2011 by Urs Beyerle</p>
43
<p align=right>Last modified: Friday, 04-March-2011 by Urs Beyerle</p>
41
</body>
44
</body>
42
</html>
45
</html>
43
EOF
46
EOF
44
 
47
 
45
cat > /usr/share/doc/HTML/layout.css << EOF
48
cat > /usr/share/doc/HTML/layout.css << EOF
46
body {
49
body {
47
        margin:10px;
50
        margin:10px;
48
        padding:10px;
51
        padding:10px;
49
        font-family:verdana, arial, helvetica, sans-serif;
52
        font-family:verdana, arial, helvetica, sans-serif;
50
        color:#333;
53
        color:#333;
51
        background-color:white;
54
        background-color:white;
52
        }
55
        }
53
h1 {
56
h1 {
54
        margin:5px 5px 15px 0px;
57
        margin:5px 5px 15px 0px;
55
        padding:0px;
58
        padding:0px;
56
        font-size:24px;
59
        font-size:24px;
57
        line-height:24px;
60
        line-height:24px;
58
        font-weight:900;
61
        font-weight:900;
59
        color:#333;
62
        color:#333;
60
        }
63
        }
61
p {
64
p {
62
        font:12px/20px verdana, arial, helvetica, sans-serif;
65
        font:12px/20px verdana, arial, helvetica, sans-serif;
63
        margin:0px 0px 14px 0px;
66
        margin:0px 0px 14px 0px;
64
        padding:3px;
67
        padding:3px;
65
        }
68
        }
66
li {
69
li {
67
        font:12px/20px verdana, arial, helvetica, sans-serif;
70
        font:12px/20px verdana, arial, helvetica, sans-serif;
68
        margin:0px 0px 0px 0px;
71
        margin:0px 0px 0px 0px;
69
        padding:0px;
72
        padding:0px;
70
        }
73
        }
71
a {
74
a {
72
        color:#09c;
75
        color:#09c;
73
        font-size:12px;
76
        font-size:12px;
74
        text-decoration:none;
77
        text-decoration:none;
75
        font-weight:600;
78
        font-weight:600;
76
        font-family:verdana, arial, helvetica, sans-serif;
79
        font-family:verdana, arial, helvetica, sans-serif;
77
        }
80
        }
78
a:link {color:#05a;}
81
a:link {color:#05a;}
79
a:visited {color:#058;}
82
a:visited {color:#058;}
80
a:hover {background-color:#eee;}
83
a:hover {background-color:#eee;}
81
EOF
84
EOF
82
 
85
 
83
%end
86
%end