aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-04-27 23:15:01 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-04-27 23:29:30 +0200
commite69f9385e451edab1c3ad5ea091eb75f6e8c5bc0 (patch)
tree783b69053fb3b6372bc577db4d233d2300c8bf30 /scripts
parent9bd44f525b8c97407e083697cf0b4fb7eab4e718 (diff)
downloadfbida-e69f9385e451edab1c3ad5ea091eb75f6e8c5bc0.tar.gz
move blob hexifxing to script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/hexify.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/hexify.sh b/scripts/hexify.sh
new file mode 100755
index 0000000..63211ca
--- /dev/null
+++ b/scripts/hexify.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+blob="$1"
+chdr="$2"
+hexdump -v -e '1/1 "0x%02x,"' < "$blob" > "$chdr"