Skip to Content.
Sympa Menu

baslinux - Re: [BL] BL2 kernel version

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: qwms-avib AT dea.spamcon.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] BL2 kernel version
  • Date: Mon, 11 Aug 2003 16:36:21 +1200

Ken Martwick wrote:
>
> I want the "init" process to be able to run different
> boot scripts (or parts of scripts) depending on the kernel
> being used.

Oh, I see. That's not too difficult. Some of the startup
scripts already have conditional branches. For example,
have a look at /etc/rc.d/rc.6.

You can get the kernel version by doing:
------------------------------ --------
cat /proc/sys/kernel/osrelease or uname -r
------------------------------ --------

To turn it into a variable (for branching), you can put ` `
around it.

Cheers,
Steven





Archive powered by MHonArc 2.6.24.

Top of Page