diff options
author | Shiji Yang <yangshiji66@qq.com> | 2022-11-20 11:15:16 +0800 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-11-27 13:18:29 +0100 |
commit | 9fa8fff0af727b1cf1898285926cda8a480b08f7 (patch) | |
tree | de65adde69dd12e2b70b0b1d670f7850829fc350 /scripts | |
parent | acb10faa35748ca3a7e0f559c431a1a752fdc529 (diff) | |
download | upstream-9fa8fff0af727b1cf1898285926cda8a480b08f7.tar.gz upstream-9fa8fff0af727b1cf1898285926cda8a480b08f7.tar.bz2 upstream-9fa8fff0af727b1cf1898285926cda8a480b08f7.zip |
scripts: remove redundant character '0x0a' from Linksys image signature
The redundant character '0x0a' after the 192 bytes '0x00' padding broke
the factory image. We need to remove it to make things work again.
Fixes: e6769d11f3 scripts: fix missing character '0' issue in linksys image
Tested-by: Tony Butler <spudz76@gmail.com>
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/linksys-image.sh | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/linksys-image.sh b/scripts/linksys-image.sh index 3b4412c06e..d251b5da8e 100755 --- a/scripts/linksys-image.sh +++ b/scripts/linksys-image.sh @@ -17,7 +17,6 @@ # <padding> Padding ('0' + 0x20 *7) (8 bytes) # <signature> Signature of signer. Not checked so use arbitrary value (16 bytes) # <padding> Padding (0x00) (192 bytes) -# 0x0A (1 byte) ## version history # * version 1: initial commit @@ -62,6 +61,4 @@ printf ".LINKSYS.01000409%-15s%-8s%-8s%-16s" "${TYPE}" "${CRC}" "0" "K0000000F02 dd if=/dev/zero bs=1 count=192 conv=notrunc >> "${IMG_TMP_OUT}" -printf '\12' >> "${IMG_TMP_OUT}" - cp "${IMG_TMP_OUT}" "${IMG_OUT}" |