slitaz-forge view mirror/floppies/mkindex.sh @ rev 371

Add bios & mini floppy sets
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jun 07 13:29:49 2013 +0200 (2013-06-07)
parents e6e4be1b2591
children 308a7ccd90c1
line source
1 #!/bin/sh
3 list_version()
4 {
5 ls ?.0 -dr | while read dir ; do
6 echo $dir
7 [ -d loram-$dir ] && echo loram-$dir
8 [ -d bios-$dir ] && echo bios-$dir
9 [ -d mini-$dir ] && echo mini-$dir
10 done
11 }
13 build_page()
14 {
15 DIR=$1
16 VERSION=${DIR#*-}
17 case "$DIR" in
18 bios*) TYPE="&nbsp;bios" ;;
19 mini*) TYPE="&nbsp;mini" ;;
20 loram*) TYPE="&nbsp;loram" ;;
21 *) TYPE=""
22 esac
23 cat <<EOT
24 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
25 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
26 <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
27 <head>
28 <title>SliTaz Boot Floppies</title>
29 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
30 <meta name="description" content="slitaz$TYPE boot floppies $VERSION" />
31 <meta name="robots" content="index, nofollow" />
32 <meta name="author" content="SliTaz Contributors" />
33 <link rel="shortcut icon" href="static/favicon.ico" />
34 <link rel="stylesheet" type="text/css" href="static/slitaz.css" />
35 <link rel="stylesheet" type="text/css" href="menu.css" />
36 <style type="text/css">
37 table {
38 background-color: inherit;
39 margin: 10px 0px 0px 0px;
40 }
41 #copy {
42 text-align: center;
43 }
45 #bottom {
46 text-align: center;
47 }
49 </style>
50 </head>
51 <body bgcolor="#ffffff">
52 <!-- Header -->
53 <div id="header">
54 <a name="top"></a>
55 <div id="logo"></div>
56 <div id="network">
57 <ul id="menu">
58 <li>
59 <a href="http://www.slitaz.org/">
60 <img src="static/home.png" alt="[ home ]" /></a>
61 </li>
62 <li>
63 <a href="floppy-grub4dos" title="Boot tools">Generic boot floppy</a>
64 </li>
65 <li>
66 <a href="http://tiny.slitaz.org/" title="SliTaz in one floppy and 8Mb RAM">Tiny SliTaz</a>
67 <ul>
68 $( list_version | while read dir; do
69 echo " <li>"
70 echo " <a href=\"index-$dir.html\" title=\"$(cat $dir/title)\">SliTaz ${dir/-/ }</a>"
71 echo " </li>"
72 done )
73 </ul>
74 </li>
75 <li>
76 <a href="builder/index.php" title="Build floppies with your own kernel and initramfs">Floppy set builder</a>
77 <ul>
78 <li>
79 <a href="builder/bootloader" title="Build your floppy sets without Internet">Standalone shell</a>
80 </li>
81 </ul>
82 </li>
83 </ul>
84 </div>
85 <h1><a href="http://www.slitaz.org/">Boot&nbsp;floppies$TYPE&nbsp;$VERSION</a></h1>
86 </div>
88 <!-- Block -->
89 <div id="block">
90 <!-- Navigation -->
91 <div id="block_nav" style="height: 126px;">
92 <h4><img src="pics/floppy.png" alt="@" />1.44Mb SliTaz$TYPE $VERSION floppy images</h4>
93 <table width="100%">
94 $(
95 n=0
96 for f in $DIR/fd*img ; do
97 [ $n -eq 0 ] && echo "<tr>"
98 echo " <td> <a href=\"$f\">$(basename $f .img)</a> </td>"
99 n=$(( ($n+1)%6 ))
100 [ $n -eq 0 ] && echo "</tr>"
101 done
102 [ $n -eq 0 ] && echo "<tr>"
103 while [ $n -ne 5 ]; do
104 echo " <td> </td>"
105 n=$(($n+1))
106 done
107 )
108 <td> <a href="$DIR/md5sum">md5</a> </td>
109 </tr>
110 </table>
111 </div>
112 <!-- Information/image -->
113 <div id="block_info">
114 <h4>Available boot floppies</h4>
115 <ul>
116 $(
117 tail=""
118 list_version | while read dir; do
119 case "$dir" in
120 bios*) echo -en "\n - <a href=\"index-$dir.html\">bios</a>" ;;
121 mini*) echo -en "\n - <a href=\"index-$dir.html\">mini</a>" ;;
122 loram*) echo -en "\n - <a href=\"index-$dir.html\">loram</a>" ;;
123 *) echo -en "$tail <li><a href=\"index-$dir.html\">SliTaz $dir</a>" ;;
124 esac
125 tail="</li>\n"
126 done
127 )</li>
128 </ul>
129 </div>
130 </div>
132 <!-- Content top. -->
133 <div id="content_top">
134 <div class="top_left"></div>
135 <div class="top_right"></div>
136 </div>
138 <!-- Content -->
139 <div id="content">
141 <h2>Floppy image set</h2>
143 <p>
144 This floppy set will boot a Slitaz stable$TYPE version. You can write floppies
145 with SliTaz <i>bootfloppybox</i>,
146 <a href="http://en.wikipedia.org/wiki/RaWrite">Windows rawrite</a> or simply dd:
147 </p><pre># dd if=fd001.img of=/dev/fd0
148 </pre>
150 <p>
151 If you have a CD-ROM, an USB port and an USB key or a network card, but you
152 can't boot these devices directly, then try
153 <a href="http://mirror.slitaz.org/boot/floppy-grub4dos">floppy-grub4dos</a>
154 first. This 1.44Mb floppy provides tiny programs to boot these devices without BIOS
155 support and some other tools.
156 </p>
157 $(cat $DIR/description.html)
158 <p>
159 Each floppy set detects disk swaps and can be used without a keyboard.
160 </p>
161 EOT
162 [ -s $DIR/fd100.img ] && cat <<EOT
163 <p>
164 If you have an ext3 partition on your hard disk, the bootstrap can create the
165 installation script <u>slitaz/install.sh</u>. You will be able to install SliTaz
166 on your hard disk without extra media.
167 </p>
168 EOT
169 cat <<EOT
170 <p>
171 Good luck.
172 </p>
174 <a name="fdiso"></a>
175 <h2>ISO image floppy set</h2>
177 <form method="get" action="http://mirror.slitaz.org/floppies/download.php">
178 <p>
179 The floppy image set above includes an embedded installer and can install
180 SliTaz on your hard disk.
181 </p>
182 <p>
183 Anyway you may want these ISO images to
184 <a href="http://doc.slitaz.org/en:guides:uncommoninst#floppy-install">
185 install SliTaz</a>
186 <select name="iso">
187 $(
188 for file in $(ls ../iso/*/flavors/slitaz-*.iso ../iso/*/slitaz-*.iso | sort); do
189 set -- $(echo $(basename $file .iso) | sed 's/-/ /g')
190 echo " <option value=\"${file#../}\">${3:-core} $4 $2</option>"
191 done
192 )
193 </select>
194 <input name="build" value="Build floppy set" type="submit" />
195 </p>
196 </form>
197 <p>
198 You can restore the ISO image on your hard disk using :
199 </p>
200 <pre>
201 # dd if=/dev/fd0 of=fdiso01.img
202 # dd if=/dev/fd0 of=fdiso02.img
203 # ...
204 # cat fdiso*.img | cpio -i
205 </pre>
207 <h2>Images generation</h2>
208 <p>
209 All these floppy images are built with <b>bootfloppybox</b> from
210 a <i>core</i> or a <i>4in1</i> iso. The <i>loram</i> is preprocessed by
211 <b>tazlitobox</b> (Low RAM tab). These tools are available since 3.0.
212 You can extract the <u>kernel</u>, <u>cmdline</u> and <u>rootfs</u> files with
213 <a href="floppies">this tool</a>
214 </p>
216 <!-- End of content with round corner -->
217 </div>
218 <div id="content_bottom">
219 <div class="bottom_left"></div>
220 <div class="bottom_right"></div>
221 </div>
223 <!-- Start of footer and copy notice -->
224 <div id="copy">
225 <p>
226 Copyright &copy; <span class="year"></span> <a href="http://www.slitaz.org/">SliTaz</a> -
227 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
228 </p>
229 <!-- End of copy -->
230 </div>
232 <!-- Bottom and logo's -->
233 <div id="bottom">
234 <p>
235 <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>
236 </p>
237 <p>
238 <img src="#" id="qrcodeimg" alt="#" width="60" height="60"
239 onmouseover= "this.title = location.href"
240 onclick= "this.width = this.height = 300;" />
241 <script type="text/javascript" src="static/qrcode.js"></script>
242 <script type="text/javascript">
243 document.getElementById('qrcodeimg').src =
244 QRCode.generatePNG(location.href, {ecclevel: 'H'});
245 </script>
246 </p>
247 </div>
249 </body>
250 </html>
251 EOT
252 }
254 if [ -n "$1" ]; then
255 build_page $1
256 else
257 list_version | while read dir ; do
258 [ -s $dir/description.html ] || continue
259 [ -s $dir/md5sum ] || continue
260 build_page $dir > index-$dir.html
261 done
262 fi