summaryrefslogtreecommitdiffstats
path: root/sbin/kldstat/kldstat.8
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-09-23 23:52:26 +0000
committerpjd <pjd@FreeBSD.org>2005-09-23 23:52:26 +0000
commit7386c5229413cf5854510293b5354c1edb72d33d (patch)
tree4c2a888b13e4d495628abb6e9a23c6f54aae385c /sbin/kldstat/kldstat.8
parent899f0582914085466a6860f42fad3563da0e2140 (diff)
downloadFreeBSD-src-7386c5229413cf5854510293b5354c1edb72d33d.zip
FreeBSD-src-7386c5229413cf5854510293b5354c1edb72d33d.tar.gz
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.'
Diffstat (limited to 'sbin/kldstat/kldstat.8')
-rw-r--r--sbin/kldstat/kldstat.83
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/kldstat/kldstat.8 b/sbin/kldstat/kldstat.8
index b2b72c2..5a8565e 100644
--- a/sbin/kldstat/kldstat.8
+++ b/sbin/kldstat/kldstat.8
@@ -37,6 +37,7 @@
.Op Fl i Ar id
.Op Fl n Ar filename
.Nm
+.Op Fl q
.Op Fl m Ar modname
.Sh DESCRIPTION
The
@@ -52,6 +53,8 @@ Be more verbose.
Display the status of only the file with this ID.
.It Fl n Ar filename
Display the status of only the file with this filename.
+.It Fl q
+Only check if module is loaded or compiled into the kernel.
.It Fl m Ar modname
Display the status of only the module with this modname.
.El
OpenPOWER on IntegriCloud