Commit 4fda8607 authored by Andreas Bombe's avatar Andreas Bombe Committed by Linus Torvalds

[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).
parent 1c60cf8a
...@@ -68,7 +68,7 @@ done ...@@ -68,7 +68,7 @@ done
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Find a file, first parameter is basename of file # Find a file, first parameter is basename of file
# it tries many compression mechanisms and sets variables to say how to get it # it tries many compression mechanisms and sets variables to say how to get it
function findFile { findFile () {
filebase=$1; filebase=$1;
if [ -r ${filebase}.gz ]; then if [ -r ${filebase}.gz ]; then
...@@ -106,7 +106,7 @@ function findFile { ...@@ -106,7 +106,7 @@ function findFile {
# Apply a patch and check it goes in cleanly # 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 # First param is patch name (e.g. patch-2.4.9-ac5) - without path or extension
function applyPatch { applyPatch () {
echo -n "Applying $1 (${name})... " echo -n "Applying $1 (${name})... "
if $uncomp ${patchdir}/$1${ext} | patch -p1 -s -N -E -d $sourcedir if $uncomp ${patchdir}/$1${ext} | patch -p1 -s -N -E -d $sourcedir
then then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment