# HG changeset patch # User Pascal Bellard # Date 1295607536 -3600 # Node ID 6810b116924d1a404f8c4d8e25196cdb0247a3e8 # Parent 874e4034d260ba99a82f5926e4faec561d1c62bf mirror-tools: add css & floppies diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/favicon.ico Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/favicon.ico has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/Directory Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/Directory has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/application_octet-stream Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/application_octet-stream has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/file_fd Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/file_fd has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/file_iso Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/file_iso has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/file_md5 Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/file_md5 has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/file_tar.gz Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/file_tar.gz has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/file_tazpkg Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/file_tazpkg has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/text_plain Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/pics/mime/text_plain has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/pics/website/header-img.png Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/pics/website/header-img.png has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/pics/website/logo.png Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/pics/website/logo.png has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/pics/website/network.png Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/pics/website/network.png has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/pics/website/users.png Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/pics/website/users.png has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/pics/website/xhtml10.png Binary file mirror-tools/stuff/var/www/slitaz/mirror/css/pics/website/xhtml10.png has changed diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/css/slitaz.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/slitaz/mirror/css/slitaz.css Fri Jan 21 11:58:56 2011 +0100 @@ -0,0 +1,587 @@ +/* + CSS style for SliTaz GNU/Linux website + www.slitaz.org - (c) 2011 Pankso +*/ + +html { + min-height: 102%; +} + +body { + background: #ffffff; + color: black; + font: 13px sans-serif, vernada, arial; + margin: 0; + border-top: 34px solid #f1f1f1; +} + +/* Accessibility */ + +#access { + position: absolute; + top: 4px; + right: 0px; + text-align: right; + width: auto; + margin: 0; + padding: 4px 4px 4px 20px; + font-size: 11px; + font-weight: bold; +} + +#access a { + background: transparent; + color: #0F314E; + text-decoration: none; +} + +#access a:hover { + background: inherit; + color: #b64b22; +} + +#access img { + vertical-align: middle; +} + +/* Header and title */ + +#header { + /*background: #f0ba08 url(pics/website/header.png) repeat-x top;*/ + background: #351a0a url(pics/website/header-img.png) no-repeat top right; + color: black; + width: 100%; + height: 42px; + border-top: 1px solid black; + border-bottom: 1px solid #999; + margin-bottom: 33px; +} + +#titre { + position: absolute; + font-size: 14px; + font-weight: bolder ; + left: 180px; + top: 4px; +} + +#logo { + position: absolute; + float: left; + left: 16px; + top: -10px; + width: 200px; + height: 74px; +} + +/* Side bar Navigation */ + +#nav { + position: absolute; + top: 102px; + right: 80px; + color: #555555; + float: right; + width: 250px; + line-height: 1.5em; + text-align: left; + font-size: 12px; +} + +#nav .nav_box ul { + list-style-type: none; + margin: 0; + padding: 10px 24px 10px 0px; + background-color: inherit; +} + +#nav li { + display: inline; +} + +#nav h4 { + font-size: 120%; + color: #666666; + font-weight: bold; + margin: 0; + padding: 0 0 1px 0; + border-bottom: 1px solid #cecece; +} + +#nav a { + color: #0F314E; + background: inherit; + display: block; + text-decoration: none; + font-weight: bold; +} + +#nav a:hover { + color: #b64b22; + text-decoration: none; + display: block; +} + +#nav ul { + -moz-border-radius: 8px; + -webkit-border-radius: 8px; + border-radius: 8px; + list-style-type: none; + margin: 10px 0; + padding: 10px 24px 10px 24px; + background-color: #eaeaea; +} + +.nav_box { + margin: 10px 0; + padding: 10px 24px 10px 24px; + background-color: #eaeaea; + text-align: justify; + -moz-border-radius: 8px; + -webkit-border-radius: 8px; + border-radius: 8px; + -moz-box-shadow: 0 1px 3px #666; + -webkit-box-shadow: 0 1px 3px #666; + box-shadow: 0 1px 3px #666; + /* CSS3 transition */ + -webkit-transition-property: background-color; + -webkit-transition-duration: 2s; + -moz-transition-property: background-color; + -moz-transition-duration: 2s; + transition-property: background-color; + transition-duration: 2s; +} + +.nav_box:hover { background-color: #f8f8f8; } + +#nav .nav_box p { + line-height: 1.3em; +} + +#nav .nav_box p a { + display: inline; + font-weight: normal; + text-decoration: underline; +} + +#nav .nav_box p a:hover { + text-decoration: none; + color: blue; + background: inherit; +} + +/* Page content */ + +#content { + background: white; + color: black; + text-align: justify; + height: auto; + margin: 6px 320px 0px 0px; + padding: 0px 40px 60px 80px; +} + +#content-full { + background: white; + color: black; + text-align: justify; + height: auto; + margin: 0; + padding: 0px 80px 40px 80px; +} + +#content li, #content-full li { + line-height: 1.5em; + text-align: left; +} + +#news li { + list-style-type: square; + border-bottom: 1px dotted #BEBEBE; + margin-left: -25px; + padding: 4px 0px 4px 0px; +} + +#news a { + text-decoration: none; +} + +#gallery { + text-align: center; +} + +/* Box and block. */ + +.infobox { + margin: 20px 60px; + padding: 12px; + background: #f8f8f8; +} + +.infobox img { vertical-align: middle; } +/* .infobox:hover { background-color: #f2b21d; } */ +.infobox:hover { background-color: #FBFBFB; } + +.block { + /*padding-bottom: 35%;*/ + color: black; + min-height: 200px; + margin-bottom: 40px; +} + +.block ul { + list-style-type: none; + margin: 0; + padding: 0 20px; +} + +.block_left { + width: 46%; + float: left; + background-color: #eaeaea; + margin: 4px 2px; + padding: 0 10px 10px 10px; +} + +.block_right { + width: 46%; + float: right; + background-color: #eaeaea; + margin: 4px 2px; + padding: 0 10px 10px 10px; +} + +#block_top { + color: black; + background-color: #eaeaea; + min-height: 180px; + margin-bottom: 40px; + margin-right: 340px; + padding: 0 10px; +} + +#block_nav { + width: 300px; + min-height: 180px; + float: right; + background-color: #eaeaea; + margin: 0; + padding: 0 10px; +} + +.infobox, .block_left, .block_right, #block_top, #block_nav, #footer { + -moz-border-radius: 8px; + -webkit-border-radius: 8px; + border-radius: 8px; + -moz-box-shadow: 0 1px 3px #666; + -webkit-box-shadow: 0 1px 3px #666; + box-shadow: 0 1px 3px #666; + /* CSS3 transition */ + -webkit-transition-property: background-color; + -webkit-transition-duration: 2s; + -moz-transition-property: background-color; + -moz-transition-duration: 2s; + transition-property: background-color; + transition-duration: 2s; +} + +#block_nav { + font-weight: bold; +} + +#block_nav a { + text-decoration: none; +} + +#block_nav li a:hover { + color: #b64b22; +} + +#block_nav ul { + margin: 0; + list-style-type: none; +} + +#block_nav h3 { + font-size: 110%; +} + +.block_left:hover, .block_right:hover, #block_top:hover, +#block_nav:hover, #footer:hover { + background-color: #f8f8f8; +} + +.right_box { + width: 50%; + float: right; +} + +.floor { + color: #999999; + font-size: 20px; + -webkit-transform: rotate(-45deg) skew(15deg, 15deg); + -moz-transform: rotate(-45deg) skew(15deg, 15deg); + -o-transform: rotate(-45deg) skew(15deg, 15deg); + -ms-transform: rotate(-45deg) skew(15deg, 15deg); + transform: rotate(-45deg) skew(15deg, 15deg); +} + +/* Button */ + +.button { margin-left: 20px; } + +.button a { + background-color: #b64b22; + color: #ffffff; + margin-right: 6px; + padding: 6px 10px; + font-size: 14px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + -moz-box-shadow: 0 1px 3px #666; + -webkit-box-shadow: 0 1px 3px #666; + box-shadow: 0 1px 3px #666; +} + +.button a:hover, input[type=submit]:hover { + background-color: #a3431f; + color: #ffffff; +} + +input[type=submit] { + border: 1px solid #b64b22; + background-color: #b64b22; + color: white; + font-weight: bold; + cursor: pointer; + padding: 2px 10px; + font-size: 14px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; + border-radius: 2px; + -moz-box-shadow: 0 0 5px #666; + -webkit-box-shadow: 0 0 5px#666; + box-shadow: 0 0 5px #666; +} + +input[type=text] { + border: 1px solid #333333; + padding: 3px; + width: 100%; + max-width: 500px; +} + +/* Clouds */ + +#cloud { + padding: 10px 0px; + line-height: 3em; + text-align: center; +} +#cloud a { padding: 0 2px; color: #956411; } +#cloud a.tag1 { font-size: 0.7em; font-weight: 100; } +#cloud a.tag2 { font-size: 0.8em; font-weight: 200; } +#cloud a.tag3 { font-size: 0.9em; font-weight: 300; } +#cloud a.tag4 { font-size: 1.0em; font-weight: 400; } +#cloud a.tag5 { font-size: 1.2em; font-weight: 500; } +#cloud a.tag6 { font-size: 1.4em; font-weight: 600; } +#cloud a.tag7 { font-size: 1.6em; font-weight: 700; } +#cloud a.tag8 { font-size: 1.8em; font-weight: 800; } +#cloud a.tag9 { font-size: 2.2em; font-weight: 900; } +#cloud a.tag10 { font-size: 2.5em; font-weight: 900; } + +/* Slideshow. */ + +#slideshow +{ + overflow: hidden; + margin: 10px auto 10px; + position: relative; + width: 260px; + height: 163px; +} + +#slideshow img +{ + border: 0; + width: 260px; + height: 163px; +} + +#twitter { + margin-top: 20px; + -moz-border-radius: 8px; + -webkit-border-radius: 8px; + border-radius: 8px; + -moz-box-shadow: 0 1px 3px #666; + -webkit-box-shadow: 0 1px 3px #666; + box-shadow: 0 1px 3px #666; +} + +/* HTML styles */ + +h1 { + color: #444444; + background: transparent; + text-align: left; + margin: 0px 0px 4px 0px; + font-size: 150%; + font-weight: bold; + padding: 5px 0 0 10px; +} + +h2 { + color: #b64b22; + padding: 0; + margin: 20px 0 0 0; + font-size: 130%; + font-weight: bold; +} + +h3 { + font-weight: bold; + color: #666666; + background: transparent; +} + +h3 img { + vertical-align: middle; + width: 20px; + height: 20px; + padding-right: 4px; +} + +a { + text-decoration: underline; + color: #103A5E; + background: inherit; +} + +a:hover { + text-decoration: none; + color: blue; + background: inherit; +} + +code { + font-size: 12px; + color: #669900; + background: inherit; +} + +tt { + color: #15EE15; + background: inherit; +} + +img { + border: 0pt none; +} + +fieldset { + background: #E2ECf6; + color: black; + margin-top: 25px; + border: 1px solid black; +} + +legend { + border: 1px solid black; + color: #6c0023; + background: #eaeaea; + font-weight: bold; +} + +pre { + padding: 5px; + color: black; + background: #E1E0B0; +} + +pre.script { + padding: 10px; + color: black; + background: #E8E8E8; + border: 1px inset #606060; +} + +textarea { + background: #E5E5E5; + margin-top: 12px; +} + +/* Packages pages */ + +.pkg_nav { + border-top: 1px solid black; + margin-top: 10px; + padding-top: 10px; +} + +pre.package { + padding: 0px; + color: black; + background: white; +} + +p.get { + text-align: center; + padding: 10px; + color: black; + background: #F3F3F3; + border: 1px solid #DEDEDE; + border-radius: 4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; +} + +p.get a { + font-weight: bold; + text-decoration: none; +} + +.pkgs-search { + text-align: center; + padding: 40px 20px 80px 20px; +} + +.year:after { + /* content: "2007-2011"; */ + content: "2011"; +} + +/* Footer */ + +#footer { + margin: 0px 80px 80px 80px; + padding: 10px; + background: #eaeaea; + color: #666666; + height: 180px; + clear: both; + border-radius: 8px; + -moz-border-radius: 8px; + -webkit-border-radius: 8px; + -moz-box-shadow: 0 1px 3px #666; + -webkit-box-shadow: 0 1px 3px #666; + box-shadow: 0 1px 3px #666; +} +#footer a { + background: inherit; + color: #666666; +} +#footer a:hover { + background: inherit; + color: #333333; +} +#footer ul { + list-style-type: none; +} +#footer li { + padding: 2px; +} +#footer h4 { + margin: 0 20px; + font-size: 125%; +} diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/floppies/builder/bootloader --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/slitaz/mirror/floppies/builder/bootloader Fri Jan 21 11:58:56 2011 +0100 @@ -0,0 +1,211 @@ +#!/bin/sh +# +# This script creates a floppy image set from a linux bzImage and can merge +# a cmdline and/or one or more initramfs. +# The total size can not exceed 15M because INT 15H function 87H limitations. +# +# (C) 2009 Pascal Bellard - GNU General Public License v3. + +usage() +{ +cat < /dev/null + [ -n "$DEBUG" ] && printf "store16(%04X) = %04X\n" $1 $2 1>&2 +} + +# write a 32 bits data +# usage: storelong offset data32 file +storelong() +{ + echo $2 | awk '{ printf "\\\\x%02X\\\\x%02X\\\\x%02X\\\\x%02X", + $1%256,($1/256)%256,($1/256/256)%256,($1/256/256/256)%256 }' | \ + xargs echo -en | \ + dd bs=4 conv=notrunc of=$3 seek=$(( $1 / 4 )) 2> /dev/null + [ -n "$DEBUG" ] && printf "storelong(%04X) = %08X\n" $1 $2 1>&2 +} + +# read a 32 bits data +# usage: getlong offset file +getlong() +{ + dd if=$2 bs=1 skip=$(( $1 )) count=4 2> /dev/null | \ + hexdump -e '"" 1/4 "%d" "\n"' +} + +floppyset() +{ + # bzImage offsets + CylinderCount=496 + SetupSzOfs=497 + FlagsOfs=498 + SyssizeOfs=500 + VideoModeOfs=506 + RootDevOfs=508 + CodeAdrOfs=0x214 + RamfsAdrOfs=0x218 + RamfsLenOfs=0x21C + ArgPtrOfs=0x228 + + # boot+setup address + SetupBase=0x90000 + + stacktop=0x9E00 + + bs=/tmp/bs$$ + + # Get and patch boot sector + # See http://hg.slitaz.org/wok/raw-file/711d076b277c/linux/stuff/linux-header-2.6.34.u + dd if=$KERNEL bs=512 count=1 of=$bs 2> /dev/null + uudecode < /dev/null +begin-base64 644 - +/L+6nWgAkAcGF4n8McC5HQDzq1sfD6mg8X1ABlfFd3ixBvOlZWaPR3gGH8ZF ++D/6l1hB6DQBvgACA3QO6HYBWwseKAJ0LFNH6AoBXuhmAbAgzRCwCM0QTuhl +ATwIdAOIBK05NigCdPDoPgE8CnXgiHz+ieb/TBD/TBi/9AGBTRz/gMdFMACc +sBCxBUi0k4lEHLABiUQUmGaY0+BIZgMFZtPoaAAQB7+AACn4nHMCAccx21BW +6J4AXrkAgLSH/kQczRVYnXfcoRoCvxwCsQk4RBxyuJPNE+oAACCQsEYoyL7b +AejSAF3rI4D5E3IEOMF3a4D+AnIEOOZ3bGCB/QAGdCoGUlFTlrQCULEGtQTB +xQSwDyHoBJAnFEAn6IwA/s117LAgzRDitOiWAJjNE2FSUCjIdwKwAZg5+HIC +ifhQtALNE5VeWFpyoJVBjuGAxwJPdFFOdfSM4ZU4wXVFiMj+xrEBOOZ1O4j0 +/sW2AID9UHIwOi7wAXIqtQBgvt4B/kQMU+gxAFvoOAB1FlKYzRO4AQLNE1rQ +1Dpk/nXqRgjkdeVh64sWB7AxLAO0DrsHAM0QPA1088OwDejv/6wIwHX4w79s +BLFbZQINuA0BZToNdArNFnT0mM0Wju9Hw1g6AEluc2VydCBkaXNrIDEuBw0A +AA== +==== +EOT + + # Get setup + setupsz=$(getlong $SetupSzOfs $bs) + setupszb=$(( $setupsz & 255 )) + dd if=$KERNEL bs=512 skip=1 count=$setupszb 2> /dev/null >> $bs + + if [ -n "$TRACKS" ]; then + [ -n "$DEBUG" ] && echo -n "--tracks " 1>&2 + n=$(getlong $CylinderCount $bs) + store16 $CylinderCount $(( ($n & -256) + $TRACKS )) $bs + fi + if [ -n "$FLAGS" ]; then + [ -n "$DEBUG" ] && echo -n "--flags " 1>&2 + store16 $FlagsOfs $FLAGS $bs + fi + if [ -n "$VIDEO" ]; then + [ -n "$DEBUG" ] && echo -n "--video " 1>&2 + store16 $VideoModeOfs $VIDEO $bs + fi + if [ -n "$RDEV" ]; then + if [ "$(dirname $RDEV)" == "/dev" -a -b $RDEV ]; then + [ -n "$DEBUG" ] && echo -n "--rdev " 1>&2 + RDEV=$(stat -c '0x%02t%02T' $RDEV 2> /dev/null) + store16 $RootDevOfs $RDEV $bs + fi + fi + + # Store cmdline after setup + if [ -n "$CMDLINE" ]; then + [ -n "$DEBUG" ] && echo -n "--cmdline '$CMDLINE' " 1>&2 + echo -n "$CMDLINE" | dd bs=512 count=1 conv=sync 2> /dev/null >> $bs + storelong $ArgPtrOfs $(( $SetupBase + $stacktop )) $bs + fi + + # Compute initramfs size + initrdlen=0 + for i in $( echo $INITRD | sed 's/,/ /' ); do + [ -s "$i" ] || continue + [ -n "$DEBUG" ] && echo "--initrd $i " 1>&2 + initrdlen=$(( ($initrdlen + $(stat -c %s $i) + 3) & -4 )) + done + if [ $initrdlen -ne 0 ]; then + [ -n "$DEBUG" ] && echo "initrdlen = $initrdlen " 1>&2 + storelong $RamfsAdrOfs \ + $(( (0x1000000 - $initrdlen) & 0xFFFF0000 )) $bs + storelong $RamfsLenOfs $initrdlen $bs + fi + + # Output boot sector + setup + cmdline + dd if=$bs 2> /dev/null + + # Output kernel code + dd if=$KERNEL bs=512 skip=$(( $setupszb + 1 )) 2> /dev/null + + # Pad to next sector + Kpad=$(( 512 - ($(stat -c %s $KERNEL) & 511) )) + [ $Kpad -eq 512 ] || dd if=/dev/zero bs=1 count=$Kpad 2> /dev/null + + # Output initramfs + padding=0 + for i in $( echo $INITRD | sed 's/,/ /' ); do + [ -s "$i" ] || continue + [ $padding -ne 0 ] && dd if=/dev/zero bs=1 count=$padding 2> /dev/null + dd if=$i 2> /dev/null + padding=$(( 4 - ($(stat -c %s $i) & 3) )) + [ $padding -eq 4 ] && padding=0 + done + + # Cleanup + rm -f $bs +} + +if [ "$FORMAT" == "0" ]; then # unsplitted + floppyset > $PREFIX + exit +fi +floppyset | split -b ${FORMAT}k /dev/stdin floppy$$ +i=1 +ls floppy$$* | while read file ; do + output=$PREFIX$(printf "%03d" $i) + cat $file /dev/zero | dd bs=1k count=$FORMAT conv=sync of=$output 2> /dev/null + echo $output + rm -f $file + i=$(( $i + 1 )) +done diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/floppies/builder/index.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/slitaz/mirror/floppies/builder/index.php Fri Jan 21 11:58:56 2011 +0100 @@ -0,0 +1,417 @@ + 1) + $cmd .= " skip=".($_GET['n']-1); + } + echo `$cmd 2> /dev/null`; + exit; +} +?> + + + + SliTaz Boot Floppies + + + + + + + + + + + + + + +EOT; +} + + $size = 0; + $initrd_size = 0; + + // Upload kernel + + foreach($_FILES as $data) { + $msg="The file ".$_FILES["kernel"]['name']." "; + switch ($data["error"]) { + case UPLOAD_ERR_INI_SIZE : + error($msg."exceeds upload_max_filesize."); + break; + case UPLOAD_ERR_FORM_SIZE : + error($msg."exceeds max_post_size."); + break; + case UPLOAD_ERR_PARTIAL : + error($msg."was only partially uploaded."); + break; + case UPLOAD_ERR_NO_TMP_DIR : + error("Missing a temporary folder."); + break; + case UPLOAD_ERR_CANT_WRITE : + error("Failed to write file to disk."); + break; + } + } + if (isset($_FILES["kernel"]['tmp_name']) && + is_uploaded_file($_FILES["kernel"]['tmp_name'])) { + $tmp_dir = tempnam('','fdbuild'); + if (file_exists($tmp_dir)) unlink($tmp_dir); + mkdir($tmp_dir); + $tmp_dir .= '/'; + move_uploaded_file($_FILES["kernel"]['tmp_name'], + $tmp_dir."kernel"); + $kernel = $tmp_dir."kernel"; + $boot_version = get_long($kernel,0x206) & 255; + $size = get_long($kernel,0x1F4); // syssize paragraphs + if ($boot_version < 4) $size &= 0xFFFF; // 16 bits before 2.4 + $size = ($size + 0xFFF) & 0xFFFF000; // round up to 64K + $size <<= 4; // paragraphs -> bytes + if (get_long($kernel,0x202) != 0x53726448 || // 'HdrS' magic + (get_long($kernel,0x211) & 1 != 1)) { // bzImage flag + error("The file ".$_FILES["kernel"]['name']. + " is not a bzImage Linux kernel."); + $size = 0; + } + else if ($boot_version < 2 && $_POST['cmdline']) { // before 2.2 + unset($_POST['cmdline']); + error("This boot loader does not support Linux kernel ". + "prior 2.4.0-test3-pre3 command line.", + "Warning"); + } + $msg = "The size of the file ".$_FILES["kernel"]['name']; + } + + // Upload initrd + + if ($size && isset($_FILES["initrd"]['tmp_name']) && + is_uploaded_file($_FILES["initrd"]['tmp_name'])) { + move_uploaded_file($_FILES["initrd"]['tmp_name'], + $tmp_dir."initrd"); + $initrd_size = $_FILES["initrd"]['size']; + $size += $initrd_size; + $msg = "The total size of the files ".$_FILES["kernel"]['name']. + " and ".$_FILES["initrd"]['name']; + } + if ($initrd_size && isset($_FILES["initrd2"]['tmp_name']) && + is_uploaded_file($_FILES["initrd2"]['tmp_name'])) { + move_uploaded_file($_FILES["initrd2"]['tmp_name'], + $tmp_dir."initrd2"); + $initrd2_size = $_FILES["initrd2"]['size']; + $size += $initrd2_size; + $msg = "The total size of the files ".$_FILES["kernel"]['name']. + ", ".$_FILES["initrd"]['name']. + " and ".$_FILES["initrd2"]['name']; + } + if ($size >= 15 * 1024 * 1024) { + error($msg." exceeds 15 MB."); + $size = 0; + } + if ($size == 0) { + if (isset($tmp_dir)) + system("rm -f $tmp_dir"); + } + else { + $cmd = "./bootloader ".$tmp_dir."kernel --prefix " + . $tmp_dir."fd --format 0 --flags ".$_POST['flags'] + . " --video ".$_POST['video']; + if ($_POST['cmdline']) + $cmd .= " --cmdline '".$_POST['cmdline']."'"; + if (file_exists($_POST['rdev'])) + $cmd .= " --rdev ".$_POST['rdev']; + if ($initrd_size) + $cmd .= " --initrd ".$tmp_dir."initrd"; + if ($initrd2_size) + $cmd .= " --initrd ".$tmp_dir."initrd2"; + switch ($_POST['size']) { + case 1763328 : + case 2015232 : + $cmd .= " --tracks 82"; break; + case 1784832 : + $cmd .= " --tracks 83"; break; + } + shell_exec($cmd); + $count = 1; + if ($_POST['size'] != 0) { + $count += (filesize($tmp_dir."fd") -1) / $_POST['size']; + $padding = $_POST['size'] - + (filesize($tmp_dir."fd") % $_POST['size']); + } + } + $sizes = array( + "1474560" => "1.44 MB", "1638400" => "1.60 MB", + "1720320" => "1.68 MB", "1763328" => "1.72 MB", + "1784832" => "1.74 MB", "1802240" => "1.76 MB", + "1884160" => "1.84 MB", "1966080" => "1.92 MB", + "2015232" => "1.96 MB", "2949120" => "2.88 MB", + "0" => "no limit" + ); + +function show_size($size) +{ + global $sizes; + if ($size != 0) return " ".$sizes[$size]; +} + if (!isset($count)) { +?> + + + + + + + + + +
+
+
+
+ + +
+ +

Boot

+

Floppy image set builder

+ + +
"> + + + + + + + + + + + + + + + + + + + + + + + + + +
Linux kernel: required
Initramfs / Initrd: optional
Extra initramfs: optional
Default cmdline:/> optional
Root device:" /> +   Root flags: +   VGA mode: +
Floppy size: + +
+
+ +Note 1: $msg of files (kernel and initramfs) in memory. +

+

+Note 2: the extra initramfs may be useful to add your own configuration files. +

+EOT; + } + else { +?> + +

+You can write floppies with SliTaz bootfloppybox, +Windows rawrite or simply dd: +

+
# dd if=fd001.img of=/dev/fd0
+
+ +

+Start your computer with fd001.img. It will show the kernel version string and +the kernel cmdline line. You can edit the cmdline. Most users can just press Enter. +

+ += 2) { +?> +

+The floppy is then loaded into memory (one dot each 64k) and you will be prompted to +insert the next floppy, fd002.img. And so on. +

+ +

+The floppy set detects disk swaps and can be used without keyboard. +

+ +

+Good luck. +

+ + + +
+
+
+
+
+ + +
+

+Copyright © SliTaz - +GNU General Public License +

+ +
+ + +
+

+Valid XHTML 1.0 +

+
+ + + diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/floppies/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/slitaz/mirror/floppies/index.html Fri Jan 21 11:58:56 2011 +0100 @@ -0,0 +1,206 @@ + + + + SliTaz Boot Floppies + + + + + + + + + + + + + + + +
+
+
+
+ + +
+ +

Boot

+

Floppy image set

+ +

+This floppy set will boot a Slitaz stable version. You can write floppies +with SliTaz bootfloppybox, +Windows rawrite or simply dd: +

# dd if=fd001.img of=/dev/fd0
+
+ +

+If you have a CD-ROM, an USB port and an USB key or a network card, but you +can't boot these devices directly, then try +floppy-grub4dos +first. This 1.44Mb floppy provides tiny programs to boot these devices without BIOS +support and some other tools. +

+

+You can start with one of the 3 following flavors : +

    +
  • + base needs 32Mb of RAM and 5 floppies: fd001.img to fd005.img.
    + base provides the minimum slitaz distribution subset in text mode. +
  • +
  • + justx needs 96M of RAM and 11 floppies: fd001.img to fd105.img.
    + justx provides the minimum slitaz distribution subset with X11 support. +
  • +
  • + core needs 160M of RAM and 22 floppies: fd001.img to fd210.img.
    + core provides the default slitaz distribution. +
  • +
+ +Start your computer with fd001.img. It will show the kernel version string and +the kernel cmdline line. You can edit the cmdline. Most users can just press Enter. + +

+The floppy is then loaded into memory (one dot each 64k) and you will be prompted to +insert the next floppy, fd002.img. And so on up to fd005.img. +

+

+The base flavor will then start and you will be prompted to insert extra floppies +for justx and core flavors. You can bypass this by using Q and Enter. +

+

+Each floppy set detects disk swaps and can be used without a keyboard. +

+

+Good luck. +

+ + +
+
+
+
+
+ + +
+

+Copyright © SliTaz - +GNU General Public License +

+ +
+ + +
+

+Valid XHTML 1.0 +

+
+ + + diff -r 874e4034d260 -r 6810b116924d mirror-tools/stuff/var/www/slitaz/mirror/floppies/loram/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mirror-tools/stuff/var/www/slitaz/mirror/floppies/loram/index.html Fri Jan 21 11:58:56 2011 +0100 @@ -0,0 +1,155 @@ + + + + SliTaz Boot Floppies + + + + + + + + + + + + + + + +
+
+
+
+ + +
+ +

Boot

+

Floppy image set

+ +

+This floppy set will boot a Slitaz stable loram version. You can write floppies +with SliTaz bootfloppybox, +Windows rawrite or simply dd: +

# dd if=fd001.img of=/dev/fd0
+
+ +

+If you have a CD-ROM, an USB port and an USB key or a network card, but you +can't boot these devices directly, then try +floppy-grub4dos +first. This 1.44Mb floppy provides tiny programs to boot these devices without BIOS +support and some other tools. +

+

+You can start with one of the 3 following flavors : +

    +
  • + base needs 22Mb of RAM and 7 floppies: fd001.img to fd103.img.
    + base provides the minimum slitaz distribution subset in text mode. +
  • +
  • + justx needs 64M of RAM and 14 floppies: fd001.img to fd206.img.
    + justx provides the minimum slitaz distribution subset with X11 support. +
  • +
  • + core needs 92M of RAM and 26 floppies: fd001.img to fd311.img.
    + core provides the default slitaz distribution. +
  • +
+ +Start your computer with fd001.img. It will show the kernel version string and +the kernel cmdline line. You can edit the cmdline. Most users can just press Enter. + +

+The floppy is then loaded into memory (one dot each 64k) and you will be prompted to +insert the next floppy, fd002.img. And so on up to fd003.img. +

+

+The loram bootstrap will then start and you will be prompted to insert extra floppies +for base, justx and core flavors. You can bypass this by using Q and Enter. +

+

+Each floppy set detects disk swaps and can be used without a keyboard. +

+

+Good luck. +

+ + +
+
+
+
+
+ + +
+

+Copyright © SliTaz - +GNU General Public License +

+ +
+ + +
+

+Valid XHTML 1.0 +

+
+ + +