/dev/null`; exit; } function my_filesize($path) // 2G+ file support { return rtrim(shell_exec("stat -c %s '".$path."'")); } if (isset($_GET['iso'])) $_POST['iso'] = $_GET['iso']; if (isset($_GET['file'])) { $max = floor((my_filesize("../".$_GET["iso"]) + $fdsz - 1 + $cpiopad) / $fdsz); $cmd = "cd ../".dirname($_GET['iso'])."; ls ". basename($_GET['iso'],".iso").".*". " | cpio -o -H newc | cat - /dev/zero "; if ($_GET['file'] == "md5sum") { $cmd .= "| for i in \$(seq 1 $max); do dd bs=$fdsz ". "count=1 2> /dev/null | md5sum | ". "sed \"s/-\\\$/\$(printf 'fdiso%02d.img' \$i)/\"; done"; download("md5sum", 46 * $max, $cmd); } else { $cmd .= "| dd bs=".$fdsz." count=1 skip=".($_GET['file'] - 1)." "; download(sprintf("fdiso%02d.img",$_GET['file']), $fdsz, $cmd); } } ?> SliTaz Boot Floppies

@Download 1.44Mb images for

\n"; echo " \n"; if ($i % 4 == 0) echo "\n"; } if ($max % 4 != 0) { while ($max % 4 != 3) { echo ""; $max++; } } else echo "\n"; echo " \n"; ?>
fdiso".sprintf("%02d",$i); if ($max < 100) echo ".img"; echo "
md5sum

Available boot floppies

ISO image floppy set

You can restore the '.basename($_POST['iso']); ?> ISO image on your hard disk using :

# dd if=/dev/fd0 of=fdiso01.img
# dd if=/dev/fd0 of=fdiso02.img
# ...
# cat fdiso*.img | cpio -i

Copyright © SliTaz - GNU General Public License

Valid XHTML 1.0