Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: tpo/little_shell_scripts
base: 5e3c125db1
...
head fork: tpo/little_shell_scripts
compare: 338d8f879d
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 23 additions and 6 deletions.
  1. +5 −3 README.md
  2. +1 −3 bash_aliases
  3. +17 −0 modinfo_all
View
8 README.md
@@ -8,9 +8,7 @@ These bash_aliases need to be called from ~/.bashrc or similar like this:
. /path/to/this/bash_aliases
-They provide to following commands:
-
-They provide to following commands:
+They provide the following commands:
df - execute "df -h"
du - execute "du -h"
@@ -149,6 +147,10 @@ usage: mairi _search _parameters
mairi is a simple wrapper around mairix and mutt and accepts
the same parameters as mairix
+### 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
4 bash_aliases
@@ -5,9 +5,7 @@ help() {
echo
echo ' . /path/to/this/bash_aliases'
echo
- echo 'They provide to following commands:'
- echo
- echo 'They provide to following commands:'
+ echo 'They provide the following commands:'
echo
echo ' df - execute "df -h"'
echo ' du - execute "du -h"'
View
17 modinfo_all
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+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"
+ if [ "$1" = "--desc" ]; then
+ /sbin/modinfo $i | grep '^description:'
+ else
+ /sbin/modinfo $i
+ fi
+done

No commit comments for this range

Something went wrong with that request. Please try again.