wok-next diff syslinux/stuff/iso2exe/iso2exe.sh @ rev 19323
syslinux: fix isofs checksum
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 14 10:16:48 2016 +0200 (2016-07-14) |
parents | a75fc1dac50c |
children | ec6aef1425c3 |
line diff
1.1 --- a/syslinux/stuff/iso2exe/iso2exe.sh Sun Jul 03 10:58:40 2016 +0200 1.2 +++ b/syslinux/stuff/iso2exe/iso2exe.sh Thu Jul 14 10:16:48 2016 +0200 1.3 @@ -470,7 +470,7 @@ 1.4 ddq bs=1 seek=$((0x7FDE)) count=15 conv=notrunc of=$1 1.5 if [ $(stat -c %s $1) -gt 34816 ]; then 1.6 echo "Adding ISO image md5 at 7FF0 (16 bytes) ..." 1.7 - echo -en "$(ddq if=$1 bs=2k skip=16 count=$(get 32848 $1 4) | \ 1.8 + echo -en "$(ddq if=$1 bs=2k skip=16 count=$(($(get 32848 "$1" 4)-16)) | \ 1.9 md5sum | cut -c-32 | sed 's/\(..\)/\\x\1/g')" | \ 1.10 ddq bs=16 seek=2047 conv=notrunc of=$1 1.11 fi