From owner-freebsd-stable@FreeBSD.ORG Wed May 17 14:42:55 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86A2316A734; Wed, 17 May 2006 14:42:55 +0000 (UTC) (envelope-from ricardo_bsd@yahoo.com.br) Received: from maritaca.epm.br (mail.dis.epm.br [200.17.25.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id F183D43D7E; Wed, 17 May 2006 14:42:38 +0000 (GMT) (envelope-from ricardo_bsd@yahoo.com.br) Received: from localhost (localhost.localdomain [127.0.0.1]) by maritaca.epm.br (Postfix) with ESMTP id 330823A68; Wed, 17 May 2006 11:42:36 -0300 (BRST) Received: from localhost (ricardo.epm.br [172.22.1.166]) by maritaca.epm.br (Postfix) with ESMTP id 4A6AB3A65; Wed, 17 May 2006 11:42:28 -0300 (BRST) Date: Wed, 17 May 2006 11:42:28 -0300 To: "Tarasov Alexey" , "freebsd-stable@freebsd.org current@freebsd.org." , freebsd-hackers@freebsd.org From: "Ricardo A. Reis" Organization: UNIFESP Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <446ABF8A.9050206@wincmd.ru> Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <446ABF8A.9050206@wincmd.ru> User-Agent: Opera Mail/9.00 (FreeBSD) UNIFESP-Virus-Scanned: by amavisd-new at dis.epm.br Cc: Subject: Re: Fwd: kldfind X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 14:42:56 -0000 > Hello Ricardo! > > I think it will be better if your utility displays short description for > each kld module (from man page for example). Hi Alexey, Thanks for all feedback's, i update kldfind for v53 in http://ricardo.epm.br/freebsd/script/kldfind/kldfind-v053, i short description is very util, i will work in integrated kldfind with section name in respective manual, for next version. changelog, v0.52: Replace exit codes and change case per ( getopts + case) v0.53: Add new option (quiet and verbose) default output is short version. Short output (default) ./kldfind-v053 -c acpi /boot/kernel/acpi_asus.ko /boot/kernel/acpi_fujitsu.ko /boot/kernel/acpi_ibm.ko /boot/kernel/acpi_panasonic.ko /boot/kernel/acpi_sony.ko /boot/kernel/acpi_toshiba.ko /boot/kernel/acpi_video.ko /boot/modules/acpi_asus.ko ./kldfind-v053 -vc acpi (verbose output) >> Search finish, 7 resultes for /boot/kernel acpi_asus acpi_fujitsu acpi_ibm acpi_panasonic acpi_sony acpi_toshiba acpi_video >> Search finish, 1 resultes for /boot/modules acpi_asus >> Search finish, 0 resultes for /usr/local/modules Quiet output, return 1 or 0 if ./kldfind-v053 -qc acpi; then echo YES;else echo NO;fi YES if ./kldfind-v053 -qc aaaaaacpi; then echo YES;else echo NO;fi NO Thanks, any comments is very util. > > Ricardo A. Reis wrote: >> >> ------- Forwarded message ------- >> From: "Ricardo A. Reis" >> To: "freebsd-stable@freebsd.org" >> Cc: >> Subject: kldfind >> Date: Tue, 16 May 2006 15:03:20 -0300 >> >> >> Hi all, >> >> >> I writed one script for find freebsd kernel modules, >> >> >> [ricardo@myfreebsd:~/kldfind] # ./kldfind >> usage: kldfind [-chs] string >> >> [ricardo@myfreebsd:~/kldfind] # ./kldfind -h >> Options: >> -c -- find all matchs for category >> -s -- string match >> >> [ricardo@myfreebsd:~/kldfind] # ./kldfind -c acpi >>>> Searching ... >> >>>> Resultes for /boot/kernel >> >> acpi_asus >> acpi_fujitsu >> acpi_ibm >> acpi_panasonic >> acpi_sony >> acpi_toshiba >> acpi_video >> acpi_dock >> >> [ricardo@myfreebsd:~/kldfind] # ./kldfind -s vlan >>>> Searching ... >> >>>> Resultes for /boot/kernel >> >> if_vlan >> ng_vlan >> >> Any feedback is very util, >> >> >> http://ricardo.epm.br/freebsd/script/ >> >> Ricardo A. Reis >> UNIFESP >> Unix and Network Admin >> >> >> _______________________________________________________ >> Abra sua conta no Yahoo! Mail: 1GB de espac,o, alertas de e-mail no >> celular e anti-spam realmente eficaz. >> http://br.info.mail.yahoo.com/ >> _______________________________________________ >> freebsd-stable@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-stable >> To unsubscribe, send any mail to >> "freebsd-stable-unsubscribe@freebsd.org" >> >> >> >> --Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ >> >> >> _______________________________________________________Novo Yahoo! >> Messenger com voz: Instale agora e fac,a ligac,o~es de >> grac,a.http://br.messenger.yahoo.com/ >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to >> "freebsd-current-unsubscribe@freebsd.org" >> >> >> > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" -- Atenciosamente Ricardo A. Reis UNIFESP Unix and Network Adm