wok-next rev 18063
syslinux: fix iso2exe -u
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 18 10:09:16 2015 +0200 (2015-05-18) |
parents | 8da7eef6c6d7 |
children | ef2e5f879a01 |
files | syslinux/stuff/iso2exe/iso2exe.sh |
line diff
1.1 --- a/syslinux/stuff/iso2exe/iso2exe.sh Sun May 17 23:17:58 2015 +0200 1.2 +++ b/syslinux/stuff/iso2exe/iso2exe.sh Mon May 18 10:09:16 2015 +0200 1.3 @@ -272,8 +272,12 @@ 1.4 -u*|-r*|-w*) 1.5 case "$(get 0 $1)" in 1.6 23117) 1.7 - ddq if=$1 bs=512 count=2 skip=$(get 417 $1 1) of=$1 conv=notrunc 1.8 - ddq if=/dev/zero bs=1k seek=1 count=31 of=$1 conv=notrunc ;; 1.9 + b=$(get 417 $1 1) 1.10 + n=$(($(get 64 $1) + 0xC0 - ($(get 26 $1 1)*512) - ($b+1)*512)) 1.11 + ddq if=$1 bs=512 count=1 skip=$b of=$1 conv=notrunc 1.12 + ddq if=/dev/zero bs=512 seek=1 count=1 of=$1 conv=notrunc 1.13 + ddq if=$1 bs=512 seek=2 count=30 skip=$(($b+1)) of=$1 conv=notrunc 1.14 + ddq if=/dev/zero bs=1 seek=$n count=$((0x8000 - $n)) of=$1 conv=notrunc ;; 1.15 *) ddq if=/dev/zero bs=1k count=32 of=$1 conv=notrunc ;; 1.16 esac 1.17 exit 0