slitaz-forge diff mirror/floppies/mkfdrolling.sh @ rev 716

mirror/floppies: multi-format support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 23 16:41:12 2021 +0000 (2021-07-23)
parents 061a079077a3
children 291e2d88bab3
line diff
     1.1 --- a/mirror/floppies/mkfdrolling.sh	Tue Feb 26 08:22:34 2019 +0100
     1.2 +++ b/mirror/floppies/mkfdrolling.sh	Fri Jul 23 16:41:12 2021 +0000
     1.3 @@ -19,7 +19,7 @@
     1.4  		mtime=$(LC_ALL=C date '+%d %B %Y' -d $mtime)
     1.5  	set -- $(sed '/ifmem/!d;s/.*ifmem //' $mnt/boot/isolinux/isolinux.cfg \
     1.6  		| sed 's|^|echo |;s|\([0-9][0-9]*\) |$((\1/1024))M |g' | sh)
     1.7 -	umount $mnt
     1.8 +	umount $mnt 2> /dev/null || umount -l $mnt
     1.9  	rmdir $mnt
    1.10  		cat > description.html <<EOT
    1.11  <p>This floppy set uses the BIOS instead of the linux driver. You can boot
    1.12 @@ -41,9 +41,9 @@
    1.13  			eval flavor=\$$((($n - $i)*2))
    1.14  			eval ram=\$$((($n - $i)*2 -1))
    1.15  			cat >> description.html <<EOT
    1.16 -	<li><b>$flavor</b> needs ${ram}B of RAM and $(ls fd* | \
    1.17 -		awk "/fd$(($i+1))/{q=1}{if(!q)n++}END{print n}") floppies:
    1.18 -		<tt>fd001.img</tt> to <tt>$(ls -r fd${i}* | sed q)</tt>.<br>
    1.19 +	<li><b>$flavor</b> needs ${ram}B of RAM and <span id="cnt$i">$(ls fd* | \
    1.20 +		awk "/fd$(($i+1))/{q=1}{if(!q)n++}END{print n}")</span> floppies:
    1.21 +		<tt>fd001.img</tt> to <tt>fd<span id="last$i">$(ls -r fd${i}* | sed 's|fd||;s|.img||;q')</span>.img</tt>.<br>
    1.22  		$flavor provides $(while read f d; do 
    1.23  			[ $f = $flavor ] && echo $d; done <<EOT
    1.24  base the minimum SliTaz distribution subset in text mode