Solved Get variables set a boot time

Hello,

I am looking for a way to read variables set a boot time once FreeBSD is started. Variables that can be used in scripts.

I mean at boot2 stage, if I remember correctly, you can, in manual mode, set variables before booting the operating system. What I can't find is how to read them once all is started.

To illustrate what I want, whith grub, you have a configuration file to pass parameters to kernel at boot time, you can also edit these options manually with one time options. Once booted in any Linux distribution, you can cat the /proc/cmdline file and get the options passed to kernel. How Can I do that with FreeBSD ?

Thanks in advance ?
 
Last edited:
Yeah great ! That's it ! As simple as this. :)

I can also display the value specifying the name as argument to the command.
 
Back
Top