wok-6.x rev 19196
memtest: fix sysmove direction (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 06 18:35:40 2016 +0200 (2016-06-06) |
parents | 8c8391016d94 |
children | 1b27cc4b14b9 |
files | memtest/stuff/pack |
line diff
1.1 --- a/memtest/stuff/pack Mon Jun 06 10:28:32 2016 -0300 1.2 +++ b/memtest/stuff/pack Mon Jun 06 18:35:40 2016 +0200 1.3 @@ -10,7 +10,7 @@ 1.4 helpmsg=$(sed '/helpmsg:/!d{n;s/ [0-9]* \([^ ]*\).*/\1/}' ${1/.bin/.lst} | sed '$!d') 1.5 helpend=$(sed '/helpend:/!d{n;s/ [0-9]* \([^ ]*\).*/\1/}' ${1/.bin/.lst} | sed '$!d') 1.6 sed -i "s/YYY/$((0x$helpmsg))/" $0 1.7 - sed -i "s/ZZZ/$((0x$helpend-0x$helpmsg))/" $0 1.8 + sed -i "s/ZZZ/$((0x$helpend-0x$helpmsg-1))/" $0 1.9 cat >> $0 <<EOM 1.10 $(dd if=$1 bs=512 count=1 conv=sync | cat - $2 | gzip -9 | uuencode -m -) 1.11 EOT