From owner-freebsd-hackers Mon Apr 1 9:11:18 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from relay1.macomnet.ru (relay1.macomnet.ru [195.128.64.10]) by hub.freebsd.org (Postfix) with ESMTP id D943937B419 for ; Mon, 1 Apr 2002 09:11:10 -0800 (PST) Received: from news1.macomnet.ru (maxim@news1.macomnet.ru [195.128.64.14]) by relay1.macomnet.ru (8.11.6/8.11.6) with ESMTP id g31HB5T9722533; Mon, 1 Apr 2002 21:11:05 +0400 (MSD) Date: Mon, 1 Apr 2002 21:11:03 +0400 (MSD) From: Maxim Konovalov To: Dmitry Konyshev Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: finding out boot device In-Reply-To: <84434325847.20020401203442@agava.com> Message-ID: <20020401210852.C76466-100000@news1.macomnet.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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