432 |
beyerleu |
1 |
########################################################################
|
|
|
2 |
#
|
|
|
3 |
# sl610-doc.ks
|
|
|
4 |
#
|
|
|
5 |
# Create /usr/share/doc/HTML/index.html
|
|
|
6 |
# A short documentation for Scientific Linux Live CD/DVD
|
|
|
7 |
#
|
|
|
8 |
########################################################################
|
|
|
9 |
|
|
|
10 |
%post
|
|
|
11 |
|
|
|
12 |
# get SL release version and date
|
|
|
13 |
version=$( grep -o [0-9].[0-9] /etc/redhat-release )
|
|
|
14 |
date=$( date "+%A, %d-%B-%Y" )
|
|
|
15 |
|
|
|
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
|
|
|
18 |
if [ ! -e /usr/share/doc/HTML/sl-logo-96.png ]; then
|
|
|
19 |
wget --timeout=5 http://131.225.105.11/linux/scientific/graphics/version-3/logo/sl-logo-96.png -O /usr/share/doc/HTML/sl-logo-96.png
|
|
|
20 |
fi
|
|
|
21 |
if [ ! -e /usr/share/doc/HTML/sl-logo-96.png ]; then
|
|
|
22 |
wget --timeout=5 http://129.132.221.163/sl-logo-96.png -O /usr/share/doc/HTML/sl-logo-96.png
|
|
|
23 |
fi
|
|
|
24 |
|
|
|
25 |
cat > /usr/share/doc/HTML/index.html << EOF
|
|
|
26 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
|
27 |
<html>
|
|
|
28 |
<head>
|
|
|
29 |
<title>Scientific Linux ${version} Live</title>
|
|
|
30 |
<style type="text/css" media="all">@import "layout.css";</style>
|
|
|
31 |
</head>
|
|
|
32 |
<body>
|
|
|
33 |
<center>
|
|
|
34 |
<img SRC='sl-logo-96.png' ALT='SL-Logo'><br><br>
|
|
|
35 |
<h1>Welcome to Scientific Linux ${version} Live</h1>
|
|
|
36 |
</center>
|
|
|
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),
|
|
|
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
|
|
|
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>
|
|
|
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>
|
|
|
45 |
</body>
|
|
|
46 |
</html>
|
|
|
47 |
EOF
|
|
|
48 |
|
|
|
49 |
cat > /usr/share/doc/HTML/layout.css << EOF
|
|
|
50 |
body {
|
|
|
51 |
margin:10px;
|
|
|
52 |
padding:10px;
|
|
|
53 |
font-family:verdana, arial, helvetica, sans-serif;
|
|
|
54 |
color:#333;
|
|
|
55 |
background-color:white;
|
|
|
56 |
}
|
|
|
57 |
h1 {
|
|
|
58 |
margin:5px 5px 15px 0px;
|
|
|
59 |
padding:0px;
|
|
|
60 |
font-size:24px;
|
|
|
61 |
line-height:24px;
|
|
|
62 |
font-weight:900;
|
|
|
63 |
color:#333;
|
|
|
64 |
}
|
|
|
65 |
p {
|
|
|
66 |
font:12px/20px verdana, arial, helvetica, sans-serif;
|
|
|
67 |
margin:0px 0px 14px 0px;
|
|
|
68 |
padding:3px;
|
|
|
69 |
}
|
|
|
70 |
li {
|
|
|
71 |
font:12px/20px verdana, arial, helvetica, sans-serif;
|
|
|
72 |
margin:0px 0px 0px 0px;
|
|
|
73 |
padding:0px;
|
|
|
74 |
}
|
|
|
75 |
a {
|
|
|
76 |
color:#09c;
|
|
|
77 |
font-size:12px;
|
|
|
78 |
text-decoration:none;
|
|
|
79 |
font-weight:600;
|
|
|
80 |
font-family:verdana, arial, helvetica, sans-serif;
|
|
|
81 |
}
|
|
|
82 |
a:link {color:#05a;}
|
|
|
83 |
a:visited {color:#058;}
|
|
|
84 |
a:hover {background-color:#eee;}
|
|
|
85 |
EOF
|
|
|
86 |
|
|
|
87 |
%end
|