baslinux AT lists.ibiblio.org
Subject: Baslinux mailing list
List archive
- 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
-
[BL] BL2 kernel version,
Ken Martwick, 08/10/2003
-
Re: [BL] BL2 kernel version,
russ loroville, 08/10/2003
-
Re: [BL] BL2 kernel version,
qwms-avib, 08/10/2003
-
Re: [BL] BL2 kernel version,
Ken Martwick, 08/10/2003
- Re: [BL] BL2 kernel version, qwms-avib, 08/11/2003
-
Re: [BL] BL2 kernel version,
Ken Martwick, 08/10/2003
-
Re: [BL] BL2 kernel version,
qwms-avib, 08/10/2003
-
Re: [BL] BL2 kernel version,
russ loroville, 08/10/2003
Archive powered by MHonArc 2.6.24.