Mailinglist Archive: opensuse (3627 mails)

< Previous Next >
Re: [SLE] Kernel & boot question....
  • From: "Douglas J. Hunley" <root@xxxxxxxxxxxxxxxxx>
  • Date: Sat, 9 Jun 2001 13:13:35 -0400
  • Message-id: <0106091313350S.22515@xxxxxxxxxxxxxxxxx>
-----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

- --
Douglas J. Hunley (Linux User #174778)
http://hunley.homeip.net/ http://linux.nf/

HELO my name is sendmail.cf. You SIGKILLed my shell. Prepare to vi.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjsiWT8ACgkQOPP+k4ZeTm17VACgpBdgPiERByBRdPCUtgO5jtQT
pI0An34MZBJySYgNEr6LOc00FEKk3w50
=szKJ
-----END PGP SIGNATURE-----

< Previous Next >
Follow Ups
References