wok-6.x rev 19258
syslinux/iso2exe: fix partition scan
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 03 10:58:40 2016 +0200 (2016-07-03) |
parents | 13806712bef0 |
children | fad135abce3c |
files | syslinux/stuff/iso2exe/iso2exe.sh |
line diff
1.1 --- a/syslinux/stuff/iso2exe/iso2exe.sh Sun Jul 03 10:52:52 2016 +0200 1.2 +++ b/syslinux/stuff/iso2exe/iso2exe.sh Sun Jul 03 10:58:40 2016 +0200 1.3 @@ -485,7 +485,7 @@ 1.4 echo "#!boot $(md5sum $DATA | sed 's/ .*//')" | cat - $DATA | \ 1.5 ddq bs=2k seek=$(custom_config_sector $1) of=$1 conv=notrunc 1.6 newsz=$(stat -c %s $1) 1.7 - for i in 1 2 3 4 ; do 1.8 + for i in 0 1 2 3 ; do 1.9 [ $(get $((0x1BE+16*i)) $1 4) == $((0x00010080)) ] || continue 1.10 mb=$(((($newsz -1)/1024/1024)+1)) 1.11 h=$((512*$(get 417 "$1" 1)))