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" <[EMAIL PROTECTED]>
To: "freebsd-stable@freebsd.org" <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,


[EMAIL PROTECTED]:~/kldfind] # ./kldfind
usage: kldfind [-chs] string

[EMAIL PROTECTED]:~/kldfind] # ./kldfind -h
Options:
-c -- find all matchs for category
-s -- string match

[EMAIL PROTECTED]:~/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

[EMAIL PROTECTED]:~/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 "[EMAIL PROTECTED]"



--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 "[EMAIL PROTECTED]"



_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"



--
Atenciosamente

Ricardo A. Reis
UNIFESP
Unix and Network Adm
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to