Skip to content

Commit

Permalink
Convert tools now use uppercase hex.
Browse files Browse the repository at this point in the history
Bugfix: Removed leading empty line of a dump (raw-dump2mct-dump.sh).
  • Loading branch information
ikarus23 committed Jul 15, 2013
1 parent d3632de commit 29fded1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tools/dump-file-converter/raw-dump2mct-dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ file=${1:?no dump file given}
s=$(ls -l $file | cut -d ' ' -f 5)
if [ $s -eq 320 -o $s -eq 1024 -o $s -eq 2048 -o $s -eq 4096 ]
then
hex=$(xxd -p $file | tr -d '\n')
hex=$(xxd -u -p $file | tr -d '\n')
line=""
i=1
sec=0
Expand All @@ -59,6 +59,8 @@ then
(( i=i+32 ))
(( blk++ ))
done
# Remove first "\n".
out=${out:2:${#out}}
echo -e "$out"
else
echo "Not a (complete) dump."
Expand Down
2 changes: 1 addition & 1 deletion tools/key-file-converter/prox-keys2mct-keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
########################################################################


sed -n '4,19 s/^.\{7\}\(.\{12\}\).\{9\}\(.\{12\}\).*$/\1\n\2/p' ${1:?no key file given} | sort -u
sed -n '4,19 s/^.\{7\}\(.\{12\}\).\{9\}\(.\{12\}\).*$/\U\1\n\U\2/p' ${1:?no key file given} | sort -u

0 comments on commit 29fded1

Please sign in to comment.