summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Glitzner <christianglitzner@swol.net>2014-10-21 14:05:41 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2014-10-21 14:06:35 +0200
commitdd06f7c131a90dd28771f0325996587f8ffd7afe (patch)
tree776839c3629cc8083eec838ea4e3eeda266427d5
parent0388aecd3529559efe7b5560d0b93867bd41a4fc (diff)
Fix argument of the tail commandipset-4
tail: cannot open `+118' for reading: No such file or directory Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
-rwxr-xr-xkernel/patch_kernel2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/patch_kernel b/kernel/patch_kernel
index a3f96f0..f01633e 100755
--- a/kernel/patch_kernel
+++ b/kernel/patch_kernel
@@ -42,7 +42,7 @@ oldmakefile() {
lineno=$((lineno-1))
head -n $lineno $file > $file.head
lineno=$((lineno+1))
- tail +$lineno $file > $file.tail
+ tail -n +$lineno $file > $file.tail
cp $file $file.orig
cat $file.head Makefile.ipset Makefile.export.ipset $file.tail > $file
}