From owner-freebsd-audit Fri Jun 15 12:25:15 2001 Delivered-To: freebsd-audit@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 88A8F37B401; Fri, 15 Jun 2001 12:25:06 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.3/8.11.2) with ESMTP id f5FJOw187760; Fri, 15 Jun 2001 12:24:59 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010615150639.D94445@ringworld.oblivion.bg> Date: Fri, 15 Jun 2001 12:25:01 -0700 (PDT) From: John Baldwin To: Peter Pentchev Subject: RE: new kldpath(8): display/modify the module search path Cc: arch@FreeBSD.org, audit@FreeBSD.org Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 15-Jun-01 Peter Pentchev wrote: > Hi, > > Attached is a shar of a new kld-family utility, which parses and modifies > the kern.module_path sysctl in a script-friendly way. It might be useful > in startup/shutdown scripts for programs using more than one module, > or just to allow startup scripts to specify additional module directories > (e.g. /usr/local/libexec/modules, or /usr/local/lib/au88x0). [ snip ] To me, it seems more sensible to use the same interface that ldconfig uses. I.e., kldpath /foo sets the entire path to /foo, and kldpath -m adds to the path, kldpath -r displays the current path, etc. That is just my opinion, however. I'll admit that ldconfig's interface is not always the most intuitive, but I think consistency between the two would be good. Also, I would leave -q on by default, and instead use a -v to turn on verbose mode. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message