summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorAndreas Bombe <bombe@informatik.tu-muenchen.de>2002-06-19 23:40:32 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-06-19 23:40:32 -0700
commit4fda860739d173baecb06856580dca73629cbc15 (patch)
tree2f762bfb077a97f94672e15660e80d4872b6c246 /scripts/patch-kernel
parent1c60cf8a4e67a5f6716f0f671031458348574c57 (diff)
[PATCH] Fix bashisms in scripts_patch-kernel
The following trivial patch makes the patch-kernel script executable by a bare bone POSIX shell like ash. Either that, or the interpreter line has to be changed to /bin/bash. The same patch applies to 2.4 (with some line offset).
Diffstat (limited to 'scripts/patch-kernel')
-rwxr-xr-xscripts/patch-kernel4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/patch-kernel b/scripts/patch-kernel
index 5d4628cfd600..3f316b6c4d9c 100755
--- a/scripts/patch-kernel
+++ b/scripts/patch-kernel
@@ -68,7 +68,7 @@ done
# ---------------------------------------------------------------------------
# Find a file, first parameter is basename of file
# it tries many compression mechanisms and sets variables to say how to get it
-function findFile {
+findFile () {
filebase=$1;
if [ -r ${filebase}.gz ]; then
@@ -106,7 +106,7 @@ function findFile {
# Apply a patch and check it goes in cleanly
# First param is patch name (e.g. patch-2.4.9-ac5) - without path or extension
-function applyPatch {
+applyPatch () {
echo -n "Applying $1 (${name})... "
if $uncomp ${patchdir}/$1${ext} | patch -p1 -s -N -E -d $sourcedir
then