Subversion Repositories livecd

Rev

Rev 337 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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