cvs commit: src/sbin/kldstat kldstat.8 kldstat.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Sep 23 17:38:48 PDT 2005


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


More information about the cvs-src mailing list