From owner-freebsd-questions Fri Feb 10 12:18:23 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id MAA05592 for questions-outgoing; Fri, 10 Feb 1995 12:18:23 -0800 Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id MAA05586 for ; Fri, 10 Feb 1995 12:18:21 -0800 Received: by halloran-eldar.lcs.mit.edu; id AA03559; Fri, 10 Feb 1995 15:15:08 -0500 Date: Fri, 10 Feb 1995 15:15:08 -0500 From: Garrett Wollman Message-Id: <9502102015.AA03559@halloran-eldar.lcs.mit.edu> To: "M.C Wong" Cc: freebsd-questions@freefall.cdrom.com (freebsd-questions@freefall.cdrom.com) Subject: program to show current kernel's features In-Reply-To: <199502100410.AA084459459@hp.com> References: <199502100410.AA084459459@hp.com> Sender: questions-owner@FreeBSD.org Precedence: bulk < 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