[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Sheflug] uname ?
On Fri, 2004-03-05 at 11:28, Dawson, Alan wrote:
> > -----Original Message-----
> > From: Seb James [mailto:seb [at] hypercubesystems.co.uk]
>
> > > mrtg:~ # uname -a
> > > Linux mrtg 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown
> > >
> > > How is this set?
> >
> > The information comes from various files in the /proc filesystem. Try:
> >
> > cat /proc/version
> >
> OK ..
>
> Whenever I compile a kernel (which isn't very often) I download source from
> kernel.org (say linux-2.4.20.tar.gz ) unpack it to /usr/src/linux-2.4.20 and
> then create a symlink from /usr/src/linux to /usr/src/linuc-2.4.20
>
> after compiling and installing a shiny new kernel
> uname -r
>
> says 2.4.20 (in this case)
>
> How do you get the extra tag on the end ?
When you compile the kernel, you need to edit the file "Makefile" in the
base linux source directory. At the start is something like the
following:
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 20
EXTRAVERSION =
Simply add something like -my_kernel to EXTRAVERSION, recompile and
it'll come out in uname.
Hope that helps,
Seb
>
> Thanks
>
> AED
> ___________________________________________________________________
>
> Sheffield Linux User's Group -
> http://www.sheflug.co.uk/mailfaq.html
>
> GNU the choice of a complete generation.
--
Managing Director, Educational Systems, Hypercube Systems Ltd
Providing Open Source ICT solutions for schools.
Tel: 0114 231 2339 Web: www.hypercubesystems.co.uk
Mob: 07900 958964 Email: seb [at] hypercubesystems.co.uk
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.