Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 1995 15:15:08 -0500
From:      Garrett Wollman <wollman@halloran-eldar.lcs.mit.edu>
To:        "M.C Wong" <mcw@hpato.aus.hp.com>
Cc:        freebsd-questions@freefall.cdrom.com (freebsd-questions@freefall.cdrom.com)
Subject:   program to show current kernel's features
Message-ID:  <9502102015.AA03559@halloran-eldar.lcs.mit.edu>
In-Reply-To: <199502100410.AA084459459@hp.com>
References:  <199502100410.AA084459459@hp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Fri, 10 Feb 1995 15:09:49 EDT, "M.C Wong" <mcw@hpato.aus.hp.com> said:

>   Just wonder if there is a user command to show various OPTIONS compiled
>   into the kernel, or loaded LKM. This will be a good thing to have to
>   know if NFS , ISOFS support etc present in this kernel without actually
>   having to run programs that need those features to suceed or fail.

For filesystems, use the `lsvfs' command.

I don't think it's particularly useful to build a generic
option-listing facility, since we're trying to get away from that
model of kernel construction.

# fgrep 'option' /sys/`uname -m`/conf/`uname -v | sed 's,^.*/\([^/]*\)$,\1'` \
	| sed 's,#.^$,,' | sort -u

should do it if the source is still on-line and current.

-GAWollman

--
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
Opinions not those of| It is a bond more powerful than absence.  We like people
MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant



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