######################################################################## # # sl66-doc.ks # # Create /usr/share/doc/HTML/index.html # A short documentation for Scientific Linux Live CD/DVD # ######################################################################## %post # get SL release version and date version=$( grep -o [0-9].[0-9] /etc/redhat-release ) date=$( date "+%A, %d-%B-%Y" ) # get SL logo cp /usr/share/doc/sl-release-notes-$version/images/sl-logo-96.png /usr/share/doc/HTML/sl-logo-96.png if [ ! -e /usr/share/doc/HTML/sl-logo-96.png ]; then wget --timeout=20 http://131.225.111.32/documentation/graphics/logo/sl-logo-96.png -O /usr/share/doc/HTML/sl-logo-96.png fi if [ ! -e /usr/share/doc/HTML/sl-logo-96.png ]; then wget --timeout=20 http://129.132.221.163/sl-logo-96.png -O /usr/share/doc/HTML/sl-logo-96.png fi cat > /usr/share/doc/HTML/index.html << EOF Scientific Linux ${version} Live
SL-Logo

Welcome to Scientific Linux ${version} Live

The Scientific Linux Live CD/DVD is a bootable CD/DVD that runs Linux directly from CD/DVD without installing. It is based on Scientific Linux (SL), which is recompiled from RedHat Enterprise Linux (RHEL) sources.
The Live CD/DVD has a read-write rootfs and squashfs provides on-the-fly decompression that allows to store 2 GB software on a normal CD-ROM. It can be installed on hard disk or usb drive with persistent changes. The Live CD/DVDs were built using the Fedora LiveCD Tools.

For more information visit the Scientific Linux Live Homepage.

Last modified: ${date} by Urs Beyerle

EOF cat > /usr/share/doc/HTML/layout.css << EOF body { margin:10px; padding:10px; font-family:verdana, arial, helvetica, sans-serif; color:#333; background-color:white; } h1 { margin:5px 5px 15px 0px; padding:0px; font-size:24px; line-height:24px; font-weight:900; color:#333; } p { font:12px/20px verdana, arial, helvetica, sans-serif; margin:0px 0px 14px 0px; padding:3px; } li { font:12px/20px verdana, arial, helvetica, sans-serif; margin:0px 0px 0px 0px; padding:0px; } a { color:#09c; font-size:12px; text-decoration:none; font-weight:600; font-family:verdana, arial, helvetica, sans-serif; } a:link {color:#05a;} a:visited {color:#058;} a:hover {background-color:#eee;} EOF %end