scripts/ubinize-image.sh: fix buildbot breakage
[openwrt/openwrt.git] / scripts / ubinize-image.sh
index 09a00b1898cec141bf99a776eb26697d29fec864..a18d6dc428d1cdc21161c5d414ab24211b2b8d03 100755 (executable)
@@ -9,7 +9,7 @@ outfile=""
 err=""
 
 get_magic_word() {
-       dd if=$1 bs=2 count=1 2>/dev/null | hexdump -v -n 2 -e '1/1 "%02x"'
+       dd if=$1 bs=2 count=1 2>/dev/null | od -A n -N 2 -t x1 | tr -d ' '
 }
 
 is_ubifs() {