Explorar o código

[PATCH] extract-ikconfig: don't use --long-options

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Alexey Dobriyan %!s(int64=19) %!d(string=hai) anos
pai
achega
008accbbae
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/extract-ikconfig

+ 1 - 1
scripts/extract-ikconfig

@@ -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