View Single Post
Old 14th May 2008
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

I was wrong. It IS possible to pass arg - environment variables - to kernel and than such variables are available via kenv(1) after kernel is booted.

For example:

in bootloader do this before booting kernel (same thing can be done in forth script)

set OFFICE_NETWORK=YES
set HOME_NETWORK=NO
boot

after kernel have booted, you can check variables in following way:

kenv -q OFFICE_NETWORK
and kenv will print:
YES


I hope you got the point.
Reply With Quote