public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* User/kernelspace stuff to set/get kernel variables
@ 2001-12-13 15:54 DevilKin
  2001-12-13 16:03 ` Daniel Freedman
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: DevilKin @ 2001-12-13 15:54 UTC (permalink / raw)
  To: linux-kernel

Hello

I've been looking on the web, and couldn't really find what i would want...

Basically: is it possible to - one way or another - set variables at kernel boot and read those using userspace utilities?

for instance: i boot my kernel (using any old bootmanager that accepts kernel params)


LILO: linux network=dhcp


and later, in the init scripts, i check the value of this variable using some sort of userspace program, and if it happends to be 'dhcp' i'll invoke the dhcp client. 
Otherwise i'd just give a static address.

I have other uses for this, for instance, you want your disks to be FSCK'ed, but don't wanna boot first, or, don't wanna go in single user mode


LILO: linux dofsck=true


Does something like this exist? Is it implementable in an easy way? (I know a few programming languages, but only little C(++)....)

Thanks


DK

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-12-13 20:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-13 15:54 User/kernelspace stuff to set/get kernel variables DevilKin
2001-12-13 16:03 ` Daniel Freedman
2001-12-13 16:07 ` Richard B. Johnson
2001-12-13 16:11 ` Yann E. MORIN
2001-12-13 16:20 ` Jan Janak
2001-12-13 16:58   ` Russell King
2001-12-13 19:48     ` Jan Janak
2001-12-13 20:34 ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox