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
/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); } } ?>
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