wok diff syslinux/stuff/iso2exe/iso2exe.sh @ rev 14268

syslinux/iso2exe: do not overload (setup) version in bootlinux.c
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 04 11:19:19 2013 +0200 (2013-04-04)
parents ada914860f33
children 589a225cacc7
line diff
     1.1 --- a/syslinux/stuff/iso2exe/iso2exe.sh	Tue Apr 02 08:37:23 2013 +0200
     1.2 +++ b/syslinux/stuff/iso2exe/iso2exe.sh	Thu Apr 04 11:19:19 2013 +0200
     1.3 @@ -80,12 +80,15 @@
     1.4  
     1.5  add_fdbootstrap()
     1.6  {
     1.7 -	SIZE=$($0 --get bootfd.bin 2> /dev/null | tee /tmp/exe$$ | wc -c)
     1.8 +	SIZE=$($0 --get bootfd.bin 2> /dev/null | wc -c)
     1.9  	if [ $SIZE -ne 0 ]; then
    1.10 -		OFS=$(( $OFS - $SIZE ))
    1.11 +		OFS=$(( $OFS - $SIZE + 512 ))
    1.12  		printf "Adding floppy bootstrap file at %04X...\n" $OFS
    1.13 -		$0 --get bootfd.bin | ddq of=$1 bs=1 seek=$OFS conv=notrunc
    1.14 -		store 28 $(($SIZE/512)) $1 8
    1.15 +		$0 --get bootfd.bin | \
    1.16 +		ddq of=$1 bs=1 count=512 seek=$OFS conv=notrunc
    1.17 +		$0 --get bootfd.bin | \
    1.18 +		ddq of=$1 bs=1 skip=1024 seek=$((512 + $OFS)) conv=notrunc
    1.19 +		store 28 $(($SIZE/512 - 1)) $1 8
    1.20  	fi
    1.21  }
    1.22  case "$1" in