slitaz-forge diff mirror/floppies/mkindex.sh @ rev 265
add mirror/floppies
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 12 13:38:03 2012 +0200 (2012-04-12) |
parents | |
children | e1f7dc7926ee |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mirror/floppies/mkindex.sh Thu Apr 12 13:38:03 2012 +0200 1.3 @@ -0,0 +1,242 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +list_version() 1.7 +{ 1.8 + ls ?.0 -dr | while read dir ; do 1.9 + echo $dir 1.10 + [ -d loram-$dir ] && echo loram-$dir 1.11 + done 1.12 +} 1.13 + 1.14 +build_page() 1.15 +{ 1.16 + DIR=$1 1.17 + VERSION=${DIR#*-} 1.18 + case "$DIR" in 1.19 + loram*) LORAM=" loram" ;; 1.20 + *) LORAM=""; 1.21 + esac 1.22 + cat <<EOT 1.23 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 1.24 + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 1.25 +<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en"> 1.26 +<head> 1.27 + <title>SliTaz Boot Floppies</title> 1.28 + <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> 1.29 + <meta name="description" content="slitaz$LORAM boot floppies $VERSION" /> 1.30 + <meta name="robots" content="index, nofollow" /> 1.31 + <meta name="author" content="SliTaz Contributors" /> 1.32 + <link rel="shortcut icon" href="/static/favicon.ico" /> 1.33 + <link rel="stylesheet" type="text/css" href="/static/slitaz.css" /> 1.34 + <link rel="stylesheet" type="text/css" href="menu.css" /> 1.35 + <style type="text/css"> 1.36 +table { 1.37 + background-color: inherit; 1.38 + margin: 10px 0px 0px 0px; 1.39 +} 1.40 +#copy { 1.41 + text-align: center; 1.42 +} 1.43 + 1.44 +#bottom { 1.45 + text-align: center; 1.46 +} 1.47 + 1.48 + </style> 1.49 +</head> 1.50 +<body bgcolor="#ffffff"> 1.51 +<!-- Header --> 1.52 +<div id="header"> 1.53 + <a name="top"></a> 1.54 + <div id="logo"></div> 1.55 + <div id="network"> 1.56 + <ul id="menu"> 1.57 + <li> 1.58 + <a href="http://www.slitaz.org/"> 1.59 + <img src="/static/home.png" alt="[ home ]" /></a> 1.60 + </li> 1.61 + <li> 1.62 + <a href="floppy-grub4dos" title="Boot tools">Generic boot floppy</a> 1.63 + </li> 1.64 + <li> 1.65 + <a href="http://tiny.slitaz.org/" title="SliTaz in one floppy and 8Mb RAM">Tiny SliTaz</a> 1.66 + <ul> 1.67 +$( list_version | while read dir; do 1.68 + echo " <li>" 1.69 + echo " <a href=\"index-$dir.html\" title=\"$(cat $dir/title)\">SliTaz ${dir/-/ }</a>" 1.70 + echo " </li>" 1.71 +done ) 1.72 + </ul> 1.73 + </li> 1.74 + <li> 1.75 + <a href="builder/index.php" title="Build floppies with your own kernel and initramfs">Floppy set builder</a> 1.76 + <ul> 1.77 + <li> 1.78 + <a href="builder/bootloader" title="Build your floppy sets without Internet">Standalone shell</a> 1.79 + </li> 1.80 + </ul> 1.81 + </li> 1.82 + </ul> 1.83 + </div> 1.84 + <h1><a href="http://www.slitaz.org/">Boot floppies$LORAM $VERSION</a></h1> 1.85 +</div> 1.86 + 1.87 +<!-- Block --> 1.88 +<div id="block"> 1.89 + <!-- Navigation --> 1.90 + <div id="block_nav"> 1.91 + <h4><img src="pics/floppy.png" alt="@" />1.44Mb SliTaz$LORAM $VERSION floppy images</h4> 1.92 +<table width="100%"> 1.93 +$( 1.94 +n=0 1.95 +for f in $DIR/fd*img ; do 1.96 + [ $n -eq 0 ] && echo "<tr>" 1.97 + echo " <td> <a href=\"$f\">$(basename $f)</a> </td>" 1.98 + n=$(( ($n+1)&3 )) 1.99 + [ $n -eq 0 ] && echo "</tr>" 1.100 +done 1.101 +[ $n -eq 0 ] && echo "<tr>" 1.102 +while [ $n -ne 3 ]; do 1.103 + echo " <td> </td>" 1.104 + n=$(($n+1)) 1.105 +done 1.106 +) 1.107 + <td> <a href="$DIR/md5sum">md5sum</a> </td> 1.108 +</tr> 1.109 +</table> 1.110 + </div> 1.111 + <!-- Information/image --> 1.112 + <div id="block_info"> 1.113 + <h4>Available boot floppies</h4> 1.114 + <ul> 1.115 +$( 1.116 +tail="" 1.117 +list_version | while read dir; do 1.118 + case "$dir" in 1.119 + loram*) echo -en "\n <a href=\"index-$dir.html\">loram</a>" ;; 1.120 + *) echo -en "$tail <li><a href=\"index-$dir.html\">SliTaz $dir</a>" ;; 1.121 + esac 1.122 + tail="</li>\n" 1.123 +done 1.124 +)</li> 1.125 + </ul> 1.126 + </div> 1.127 +</div> 1.128 + 1.129 +<!-- Content top. --> 1.130 +<div id="content_top"> 1.131 +<div class="top_left"></div> 1.132 +<div class="top_right"></div> 1.133 +</div> 1.134 + 1.135 +<!-- Content --> 1.136 +<div id="content"> 1.137 + 1.138 +<h2>Floppy image set</h2> 1.139 + 1.140 +<p> 1.141 +This floppy set will boot a Slitaz stable$LORAM version. You can write floppies 1.142 +with SliTaz <i>bootfloppybox</i>, 1.143 +<a href="http://en.wikipedia.org/wiki/RaWrite">Windows rawrite</a> or simply dd: 1.144 +</p><pre># dd if=fd001.img of=/dev/fd0 1.145 +</pre> 1.146 + 1.147 +<p> 1.148 +If you have a CD-ROM, an USB port and an USB key or a network card, but you 1.149 +can't boot these devices directly, then try 1.150 +<a href="http://mirror.slitaz.org/boot/floppy-grub4dos">floppy-grub4dos</a> 1.151 +first. This 1.44Mb floppy provides tiny programs to boot these devices without BIOS 1.152 +support and some other tools. 1.153 +</p> 1.154 +$(cat $DIR/description.html) 1.155 +<p> 1.156 +Each floppy set detects disk swaps and can be used without a keyboard. 1.157 +</p> 1.158 +<p> 1.159 +If you have an ext3 partition on your hard disk, the bootstrap can create the 1.160 +installation script <u>slitaz/install.sh</u>. You will be able to install SliTaz 1.161 +on your hard disk without extra media. 1.162 +</p> 1.163 +<p> 1.164 +Good luck. 1.165 +</p> 1.166 + 1.167 +<a name="fdiso"></a> 1.168 +<h2>ISO image floppy set</h2> 1.169 + 1.170 +<form method="post" action="http://mirror.slitaz.org/floppies/download.php"> 1.171 +<p> 1.172 +The floppy image set above includes an embedded installer and can install 1.173 +SliTaz on your hard disk. 1.174 +</p> 1.175 +<p> 1.176 +Anyway you may want these ISO images to 1.177 +<a href="http://doc.slitaz.org/en:guides:uncommoninst#floppy-install"> 1.178 +install SliTaz</a> 1.179 +<select name="iso"> 1.180 +$( 1.181 +for file in $(ls ../iso/*/flavors/slitaz-*.iso ../iso/*/slitaz-*.iso | sort); do 1.182 + set -- $(echo $(basename $file .iso) | sed 's/-/ /g') 1.183 + echo " <option value=\"${file#../}\">${3:-core} $4 $2</option>" 1.184 +done 1.185 +) 1.186 +</select> 1.187 +<input name="build" value="Build floppy set" type="submit" /> 1.188 +</p> 1.189 +</form> 1.190 +<p> 1.191 +You can restore the ISO image on your hard disk using : 1.192 +</p> 1.193 +<pre> 1.194 +# dd if=/dev/fd0 of=fdiso01.img 1.195 +# dd if=/dev/fd0 of=fdiso02.img 1.196 +# ... 1.197 +# cat fdiso*.img | cpio -i 1.198 +</pre> 1.199 + 1.200 +<h2>Images generation</h2> 1.201 +<p> 1.202 +All these floppy images are built with <b>bootfloppybox</b> from 1.203 +a <i>core</i> or a <i>4in1</i> iso. The <i>loram</i> is preprocessed by 1.204 +<b>tazlitobox</b> (Low RAM tab). These tools are available since 3.0. 1.205 +You can extract the <u>kernel</u>, <u>cmdline</u> and <u>rootfs</u> files with 1.206 +<a href="floppies">this tool</a> 1.207 +</p> 1.208 + 1.209 +<!-- End of content with round corner --> 1.210 +</div> 1.211 +<div id="content_bottom"> 1.212 +<div class="bottom_left"></div> 1.213 +<div class="bottom_right"></div> 1.214 +</div> 1.215 + 1.216 +<!-- Start of footer and copy notice --> 1.217 +<div id="copy"> 1.218 +<p> 1.219 +Copyright © <span class="year"></span> <a href="http://www.slitaz.org/">SliTaz</a> - 1.220 +<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a> 1.221 +</p> 1.222 +<!-- End of copy --> 1.223 +</div> 1.224 + 1.225 +<!-- Bottom and logo's --> 1.226 +<div id="bottom"> 1.227 +<p> 1.228 +<a href="http://validator.w3.org/check?uri=referer"><img src="/static/xhtml10.png" alt="Valid XHTML 1.0" title="Code validé XHTML 1.0" style="width: 80px; height: 15px;" /></a> 1.229 +</p> 1.230 +</div> 1.231 + 1.232 +</body> 1.233 +</html> 1.234 +EOT 1.235 +} 1.236 + 1.237 +if [ -n "$1" ]; then 1.238 + build_page $1 1.239 +else 1.240 + list_version | while read dir ; do 1.241 + [ -s $dir/description.html ] || continue 1.242 + [ -s $dir/md5sum ] || continue 1.243 + build_page $dir > index-$dir.html 1.244 + done 1.245 +fi