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.
|