On 20:34+0400, Apr 1, 2002, Dmitry Konyshev wrote:

> Hello hackers,
>
>    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.

In recent -current we have sysctl machdep.guessed_bootdev.

-- 
Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer
phone: +7 (095) 796-9079, mailto:[EMAIL PROTECTED]


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

Reply via email to