slitaz-dev-tools view mirror-tools/slitaz/mirror/floppies/mkindex.sh @ rev 253

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