>    Could anyone please tell me if there's any way to find out which
>    device the system booted from in a user application. The loader
>    sets loaddev and currdev vars, but I see no way to transfer them to
>    the user environment.

kenv(8) allows you to read the kernel/loader environment.

However, you can't reliably determine the boot device.

-- 
To announce that there must be no criticism of the president,
or that we are to stand by the president, right or wrong, is not
only unpatriotic and servile, but is morally treasonable to 
the American public.  - Theodore Roosevelt



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to