Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Apr 2002 21:11:03 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Dmitry Konyshev <daemon@agava.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: finding out boot device
Message-ID:  <20020401210852.C76466-100000@news1.macomnet.ru>
In-Reply-To: <84434325847.20020401203442@agava.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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:maxim@macomnet.ru


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020401210852.C76466-100000>