[PATCH] extract-ikconfig: don't use --long-options
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 24 Mar 2006 11:15:56 +0000 (03:15 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Mar 2006 15:33:21 +0000 (07:33 -0800)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
scripts/extract-ikconfig

index be2e579774198a01a45d22a2bae32e9439f0091e..8187e6f0dc2fe6da060f99f9980dbf90707c02cf 100755 (executable)
@@ -21,7 +21,7 @@ function dump_config {
     let start="$start + 8"
     let size="$end - $start"
 
-    head --bytes="$end" "$file" | tail --bytes="$size" | zcat
+    dd if="$file" ibs=1 skip="$start" count="$size" 2>/dev/null | zcat
 
     clean_up
     exit 0