Skip to content
Snippets Groups Projects
Commit bedd6f44 authored by John Crispin's avatar John Crispin
Browse files

base-files: properly remove stderr from zcat/bzcat


Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>

SVN-Revision: 41135
parent e9f664c8
No related branches found
No related tags found
No related merge requests found
......@@ -182,11 +182,11 @@ get_image() { # <source> [ <command> ]
}
get_magic_word() {
get_image "$@" | dd bs=2 count=1 2>/dev/null | hexdump -v -n 2 -e '1/1 "%02x"'
(get_image "$@" | dd bs=2 count=1 | hexdump -v -n 2 -e '1/1 "%02x"') 2>/dev/null
}
get_magic_long() {
get_image "$@" | dd bs=4 count=1 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"'
(get_image "$@" | dd bs=4 count=1 | hexdump -v -n 4 -e '1/1 "%02x"') 2>/dev/null
}
jffs2_copy_config() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment