Mailinglist Archive: opensuse (3627 mails)

< Previous Next >
Re: [SLE] Kernel & boot question....
  • From: Mark Hounschell <dmarkh@xxxxxxxxxx>
  • Date: Sat, 09 Jun 2001 17:42:43 -0400
  • Message-id: <3B229853.5F8F0C9A@xxxxxxxxxx>
"Douglas J. Hunley" wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Saturday 09 June 2001 08:41, James "Jim" Hatridge babbled:
> > Hi all....
> >
> > I've got 3 kernels on my system, "A B C". I want to start different
> > programs running according to which kernel I boot. What I whould like to
> > happen is in boot.local (or where-ever) it say "if kernal A run X, if
> > kernel B run Y". Is there anyway to do this?
> >
> > BTW I'm running SuSE 7.1......
> >
> > TIA!
>
> use 'uname -v' and not 'uname -a' . it will return 2.2.19 or 2.4.5 or
> whatever. a lot easier to parse.
> For example, in my rc.local:
> if [ "`uname -v|cut -d\. -f2`" -gt 2 ]
> # do 2.4.x stuff
> else
> # do 2.2.x stuff
> fi
>
> - --

What if all the kernels are 2.4.4 just different?? Don't know if thats
the case but if
it is then the first suggestion might work but again the # would change
after any rebuild
of it. There are extra version stuff in the TOP makefile of the kernel
you could then
use that to differenciate between the kernels. Just a thought because
I've had to do
something simalar.

--
Mark Hounschell
dmarkh@xxxxxxxxxx

< Previous Next >
References