wok-6.x rev 19358
syslinux/iso2exe: fix partition scan (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 31 11:28:07 2016 +0200 (2016-07-31) |
parents | 0be966ba5e90 |
children | 107673bb7392 |
files | syslinux/stuff/iso2exe/iso2exe.sh |
line diff
1.1 --- a/syslinux/stuff/iso2exe/iso2exe.sh Sat Jul 30 10:07:40 2016 +0200 1.2 +++ b/syslinux/stuff/iso2exe/iso2exe.sh Sun Jul 31 11:28:07 2016 +0200 1.3 @@ -490,10 +490,10 @@ 1.4 [ $(get $((0x1BE+16*i)) $1 4) == $((0x00010080)) ] || continue 1.5 mb=$(((($newsz -1)/1024/1024)+1)) 1.6 h=$((512*$(get 417 "$1" 1))) 1.7 - store $(($mb-1)) $((0x1C5+16*i)) $1 8 1.8 - store $(($mb-1)) $(($h+0x1C5+16*i)) $1 8 1.9 - store $(($mb*2048)) $((0x1D2+16*i)) $1 32 1.10 - store $(($mb*2048)) $(($h+0x1D2+16*i)) $1 32 1.11 + store $((0x1C5+16*i)) $(($mb-1)) $1 8 1.12 + store $(($h+0x1C5+16*i)) $(($mb-1)) $1 8 1.13 + store $((0x1CA+16*i)) $(($mb*2048)) $1 32 1.14 + store $(($h+0x1CA+16*i)) $(($mb*2048)) $1 32 1.15 done 1.16 if [ $newsz -gt $isosz ]; then 1.17 echo "$(($newsz - $isosz)) extra bytes."