Date: Fri, 23 Sep 2005 23:52:26 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, cvs-src@freebsd.org, cvs-all@freebsd.org Subject: cvs commit: src/sbin/kldstat kldstat.8 kldstat.c Message-ID: <200509232352.j8NNqQBC031440@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2005-09-23 23:52:26 UTC
FreeBSD src repository
Modified files:
sbin/kldstat kldstat.8 kldstat.c
Log:
Add '-q' option, which (when used with '-m' option) just tells if the given
module is loaded or compiled into the kernel.
This is useful mostly in startup scripts, when module should be loaded only
if it wasn't compiled into the kernel nor already loaded, eg.:
kldstat -q -m g_eli || kldload geom_eli.ko || err 1 'geom_eli module failed to load.'
Revision Changes Path
1.14 +3 -0 src/sbin/kldstat/kldstat.8
1.18 +12 -3 src/sbin/kldstat/kldstat.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509232352.j8NNqQBC031440>
