Skip to contentSkip to conversation

extract-ikconfig: don't use --long-options

PATCH New Alexey Dobriyan 1 participant 1 message Feb 1, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extract-ikconfig: don't use --long-options

---

 scripts/extract-ikconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/extract-ikconfig +1 -1
@@ -21,7 +22,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