aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
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"