slitaz-dev-tools rev 187

Update http://floppy.slitaz.org/ (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 30 10:04:24 2012 +0200 (2012-07-30)
parents f87dfeb80d51
children 4dfd509a4db4
files mirror-tools/slitaz/mirror/floppies/builder/bootloader
line diff
     1.1 --- a/mirror-tools/slitaz/mirror/floppies/builder/bootloader	Sat Jul 28 12:58:38 2012 +0200
     1.2 +++ b/mirror-tools/slitaz/mirror/floppies/builder/bootloader	Mon Jul 30 10:04:24 2012 +0200
     1.3 @@ -204,6 +204,12 @@
     1.4  	while [ -L "$RDEV" ]; do RDEV="$(readlink "$RDEV")"; done
     1.5  	[ -b "$RDEV" ] && RDEV=$(stat -c '0x%02t%02T' $RDEV 2> /dev/null)
     1.6  	store 16 $RootDevOfs $RDEV $bs RDEV
     1.7 +
     1.8 +	[ $FORMAT -lt 1440 ] && store 8 0xEF  16	 $bs	1.2M
     1.9 +	[ $FORMAT -lt 1200 ] && store 8 0xEF  10	 $bs	720K
    1.10 +	[ $FORMAT -lt 720  ] && store 8 0x171 40	 $bs	360K
    1.11 +	[ $FORMAT -lt 360  ] && store 8 0xEF  9		 $bs	320K
    1.12 +	[ $FORMAT -lt 320  ] && store 8 0xF8  2		 $bs	160K
    1.13  	
    1.14  	# Info text after setup
    1.15  	if [ -s "$INFOFILE" ]; then
    1.16 @@ -283,10 +289,6 @@
    1.17  	[ $PAD -ne 512 ] && ddq if=/dev/zero bs=1 count=$PAD >> $PREFIX
    1.18  	exit
    1.19  fi
    1.20 -[ $FORMAT -lt 1440 ] && store 8 0xEF  16	 $bs	1.2M
    1.21 -[ $FORMAT -lt 1200 ] && store 8 0xEF  10	 $bs	720K
    1.22 -[ $FORMAT -lt 360  ] && store 8 0xEF  9		 $bs	320K
    1.23 -[ $FORMAT -lt 320  ] && store 8 0xF8  2		 $bs	160K
    1.24  floppyset | split -b ${FORMAT}k /dev/stdin floppy$$
    1.25  i=1
    1.26  ls floppy$$* 2> /dev/null | while read file ; do