Date: Fri, 08 Mar 2002 02:08:54 -0800 From: Terry Lambert <tlambert2@mindspring.com> To: Luigi Rizzo <rizzo@icir.org> Cc: arch@FreeBSD.ORG Subject: Re: Proposed patch: kern.bootdev* sysctl variables Message-ID: <3C888DB6.8DF80EE7@mindspring.com> References: <20020308020009.A6535@iguana.icir.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo wrote: > Any objection to the following patch to i386/i386/autoconf.c > to let userland apps know [an approximation of] the name > of the device the kernel was booted from ? > > The main use would be for startup scripts, such as > /etc/rc, which could this way differentiate their > behaviour based on the returned result. > > (I know it can be perfected by not assuming that > any hard disk is /dev/ad, but you get the idea...) If you grabbed the actual boot information from the tunables in the loader environment (using TUNABLE macros), you could get the actual thing. To see what's available, do a "set" at the loader prompt. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C888DB6.8DF80EE7>