Date: 02 Dec 1997 09:16:39 +1100 From: Julian Assange <proff@iq.org> To: Darren Reed <avalon@coombs.anu.edu.au> Cc: tlambert@primenet.com (Terry Lambert), julian@whistle.com, dk+@ua.net, freebsd-hackers@FreeBSD.ORG Subject: Re: detecting devfs from userland? Message-ID: <wxvhx87lq0.fsf@profane.iq.org> In-Reply-To: Darren Reed's message of Tue, 2 Dec 1997 08:38:26 %2B1100 (EDT) References: <wxzpmk7m7u.fsf@totally-fudged-out-message-id>
next in thread | previous in thread | raw e-mail | index | archive | help
Darren Reed <avalon@coombs.anu.edu.au> writes: > Getting back to the topic of detecting DEVFS from userland, if the kernel > config file (i.e. GENERIC) was included when compiled - or at least the > lines which aren't commented out - and this was available from kernfs as > /kern/config, you could do "grep DEVFS /kern/config". Granted this won't > tell you if it is or isn't mounted, but is it a start ? > > Darren > Here's what I'm using with autoconf: AC_CACHE_CHECK([if the kernel has DEVFS support enabled], nc_cv_devfs, test -x /usr/bin/lsvfs && (/usr/bin/lsvfs | grep -q devfs) && nc_cv_devfs=yes || nc_cv_devfs=no) if test $nc_cv_devfs = yes; then AC_DEFINE(DEVFS) fi Cheers, Julian. -- Prof. Julian Assange |"Don't worry about people stealing your ideas. If your | Ideas are any good, you'll have to ram them down proff@iq.org | people's throats." -- Stolen quote from Howard Aiken proff@gnu.ai.mit.edu | http://underground.org/book
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?wxvhx87lq0.fsf>