wok-next rev 17563
syslinux/iso2exe: use iso size to compute md5sum, update README
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 07 15:54:50 2015 +0100 (2015-02-07) |
parents | 00bb1e4137c6 |
children | 0dbc08309d5e |
files | syslinux/stuff/iso2exe/README |
line diff
1.1 --- a/syslinux/stuff/iso2exe/README Sat Feb 07 15:39:46 2015 +0100 1.2 +++ b/syslinux/stuff/iso2exe/README Sat Feb 07 15:54:50 2015 +0100 1.3 @@ -77,7 +77,8 @@ 1.4 1.5 (1) The following script will show computed and stored md5 hash 1.6 #!/bin/sh 1.7 -dd if=$1 bs=32k skip=1 2>/dev/null | md5sum 1.8 +count=$(echo $(od -j 32848 -N 2 -t u2 -An $1)) 1.9 +dd if=$1 bs=2k skip=16 count=$count 2>/dev/null | md5sum 1.10 od -j 32752 -N 16 -t x1 -An $1 | sed 's/ //g' 1.11 1.12 (2) Eltorito boot (i.e. bootable CD-ROM by BIOS) is not concerned by iso2exe.