Re: User/kernelspace stuff to set/get kernel variables

From: Jan Janak (
Date: Thu Dec 13 2001 - 14:48:28 EST

On Thu, Dec 13, 2001 at 04:58:05PM +0000, Russell King wrote:
> On Thu, Dec 13, 2001 at 05:20:37PM +0100, Jan Janak wrote:
> > If you pass a parameter that is not recognized by the kernel, it will be
> > passed to init as environment variable, so all you need to do is check
> > for the variable in your init scripts ($network in your example).
> IIRC, Red Hat scripts grab them from /proc/cmdline

  Only parameters of the form foo=bar will be set as environment variables (if not
recognized by the kernel).
  AFAIK Red Hat scripts grab parameters of different form from /proc/cmdline.

  But parameter of the form network=dhcp will be set as environment variable and
 this is IMHO the easiest way how to get the parameter value in startup scripts.

  regards, Jan.

> --
> Russell King ( The developer of ARM Linux
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:27 EST