Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

modinfo_all: add switch to only show description

  • Loading branch information...
commit 338d8f879d495ae0707a599deea3efe88aa7617f 1 parent 208a885
@tpo authored
Showing with 7 additions and 2 deletions.
  1. +1 −0  README.md
  2. +6 −2 modinfo_all
View
1  README.md
@@ -150,6 +150,7 @@ usage: mairi _search _parameters
### modinfo_all
./modinfo_all : list information on all currently installed kernel modules
+./modinfo_all --desc : list only description of each module
### music-dl
usage: music-dl URL
View
8 modinfo_all
@@ -2,12 +2,16 @@
help() {
echo "$0 : list information on all currently installed kernel modules"
+ echo "$0 --desc : list only description of each module"
}
[ "$1" = "--help" ] && help && exit 1
for i in `lsmod | sed '1d' | cut -d ' ' -f 1-2`; do
/bin/echo -e "module:\t\t$i"
- /sbin/modinfo $i
- echo
+ if [ "$1" = "--desc" ]; then
+ /sbin/modinfo $i | grep '^description:'
+ else
+ /sbin/modinfo $i
+ fi
done
Please sign in to comment.
Something went wrong with that request. Please try again.