Re: Applying patches

Pierfrancesco Caci (ik5pvx@penny.ik5pvx.ampr.org)
11 Apr 1998 10:03:33 +0200


Linux Lists <lists@cyclades.com> writes:

>
>
> Hi there,
>
> What is the best command line to apply a kernel patch to a Linux kernel
> source tree ??? I always use only 'patch <[patch file]', but I have a
> feeling that some argument is missing ... :(
>
> Thanks in advance.
>
> Regards,
> Ivan
>

assuming that you have the linux source tree at /usr/src/linux, and
the patch to be applied is in /usr/src, you can run this script (I
called it dopatches.sh)

#! /bin/bash
cd /usr/src
linux/scripts/patch-kernel

The patch-kernel script will automatically detect the current kernel
version (in the source tree, not the running one) and apply the needed
patch, be it a .gz or a .bz2 one.

If you want to manually apply a patch, the /usr/src/linux/README file
has some recommendations.

Pf

-- 

------------------------------------------------------------------------------- Pierfrancesco Caci | Internet: mailto:ik5pvx@infogroup.it ik5pvx | http://www.geocities.com/SoHo/Lofts/8999 Firenze - Italia | Office for the Complication of Otherwise Simple Affairs Linux penny 2.1.95 #8 Fri Apr 10 22:01:11 CEST 1998 i586 unknown

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu