From owner-cvs-all@FreeBSD.ORG Wed Jun 21 09:42:56 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31D8316A47B; Wed, 21 Jun 2006 09:42:56 +0000 (UTC) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2EF143D46; Wed, 21 Jun 2006 09:42:55 +0000 (GMT) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k5L9gtnc060505; Wed, 21 Jun 2006 09:42:55 GMT (envelope-from yar@repoman.freebsd.org) Received: (from yar@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k5L9gtAi060504; Wed, 21 Jun 2006 09:42:55 GMT (envelope-from yar) Message-Id: <200606210942.k5L9gtAi060504@repoman.freebsd.org> From: Yar Tikhiy Date: Wed, 21 Jun 2006 09:42:55 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/etc rc.subr src/share/man/man8 rc.subr.8 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 09:42:56 -0000 yar 2006-06-21 09:42:55 UTC FreeBSD src repository Modified files: etc rc.subr share/man/man8 rc.subr.8 Log: Quite a number of rc.d scripts try to load kernel modules. Many of them do that conditionally depending on kldstat. The code is duplicated all over, but bugs can be uniqie. To make the things more consistent, introduce a new rc.subr function, load_kld, which takes care of loading a kernel module conditionally. (Found this lying for a while in my p4 branch for various hacks.) Revision Changes Path 1.59 +39 -0 src/etc/rc.subr 1.13 +16 -0 src/share/man/man8/rc.subr.8