Fwd: kldfind

Ricardo A. Reis ricardo_bsd at yahoo.com.br
Wed May 17 07:42:56 PDT 2006



> 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" <ricardo_bsd at yahoo.com.br>
>> To: "freebsd-stable at freebsd.org" <freebsd-stable at 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 at myfreebsd:~/kldfind] # ./kldfind
>> usage: kldfind [-chs] string
>>
>> [ricardo at myfreebsd:~/kldfind] # ./kldfind -h
>> Options:
>> -c -- find all matchs for category
>> -s -- string match
>>
>> [ricardo at 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 at 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 at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
>> To unsubscribe, send any mail to  
>> "freebsd-stable-unsubscribe at 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 at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to  
>> "freebsd-current-unsubscribe at freebsd.org"
>>
>>
>>
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to  
> "freebsd-current-unsubscribe at freebsd.org"



-- 
Atenciosamente

Ricardo A. Reis
UNIFESP
Unix and Network Adm


More information about the freebsd-stable mailing list