From 4fda860739d173baecb06856580dca73629cbc15 Mon Sep 17 00:00:00 2001 From: Andreas Bombe Date: Wed, 19 Jun 2002 23:40:32 -0700 Subject: [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). --- scripts/patch-kernel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/patch-kernel') 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 -- cgit v1.2.3