Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122974
b: refs/heads/master
c: efddd79
h: refs/heads/master
v: v3
  • Loading branch information
Werner Almesberger authored and Sam Ravnborg committed Dec 3, 2008
1 parent e0df9a9 commit 985e676
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2301249e2f9b9a3ba989703107192b538209e57
refs/heads/master: efddd79512cc582675004bfdf7e66585198b38f9
8 changes: 4 additions & 4 deletions trunk/scripts/extract-ikconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ test -e $binoffset || cc -o $binoffset ./scripts/binoffset.c || exit 1

IKCFG_ST="0x49 0x4b 0x43 0x46 0x47 0x5f 0x53 0x54"
IKCFG_ED="0x49 0x4b 0x43 0x46 0x47 0x5f 0x45 0x44"
function dump_config {
typeset file="$1"
dump_config() {
file="$1"

start=`$binoffset $file $IKCFG_ST 2>/dev/null`
[ "$?" != "0" ] && start="-1"
Expand All @@ -18,8 +18,8 @@ function dump_config {
fi
end=`$binoffset $file $IKCFG_ED 2>/dev/null`

let start="$start + 8"
let size="$end - $start"
start=`expr $start + 8`
size=`expr $end - $start`

dd if="$file" ibs=1 skip="$start" count="$size" 2>/dev/null | zcat

Expand Down

0 comments on commit 985e676

Please sign in to comment.