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

syslinux/iso2exe: follow boot flag (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 09 09:54:22 2017 +0100 (2017-03-09)
parents e619bff66a02
children e23fd880d81b
line diff
     1.1 --- a/syslinux/stuff/iso2exe/iso2exe.sh	Wed Mar 08 15:32:40 2017 +0100
     1.2 +++ b/syslinux/stuff/iso2exe/iso2exe.sh	Thu Mar 09 09:54:22 2017 +0100
     1.3 @@ -123,7 +123,7 @@
     1.4  	store 417 $(($i/512)) $1 8
     1.5  	printf "Moving syslinux hybrid boot record at %04X (512 bytes) ...\n" $i
     1.6  	ddq if=$2 bs=1 count=512 of=$1 seek=$i conv=notrunc
     1.7 -	if [ $(get $((0x7C00)) /tmp/exe$$) -eq 60649 ]; then
     1.8 +	if [ $(get $((0x7C00)) /tmp/exe$$) -eq 60905 ]; then
     1.9  		ddq if=/tmp/exe$$ bs=1 count=66 skip=$((0x7DBE)) of=$1 seek=$(($i + 0x1BE)) conv=notrunc
    1.10  		ddq if=$1 bs=1 count=3 skip=$i of=$1 seek=$(($i + 0x1BE)) conv=notrunc
    1.11  		ddq if=/tmp/exe$$ bs=1 count=3 skip=$((0x7C00)) of=$1 seek=$i conv=notrunc
    1.12 @@ -270,7 +270,7 @@
    1.13  		fileofs $f
    1.14  		[ $SIZE -eq 0 ] ||
    1.15  		ddq bs=1 count=$SIZE skip=$OFFSET if="$ISO" >$f
    1.16 -		if [ "$f" == "syslinux.mbr" ] && [ $(get 0 "$f") -eq 60649 ]; then
    1.17 +		if [ "$f" == "syslinux.mbr" ] && [ $(get 0 "$f") -eq 60905 ]; then
    1.18  			ddq bs=1 conv=notrunc if="$f" of="$f" skip=$((0x1BE)) seek=0 count=3
    1.19  			ddq bs=1 skip=$((0x1BE)) count=66 if="$ISO" | \
    1.20  				ddq bs=1 seek=$((0x1BE)) count=66 of="$f" conv=notrunc