diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-12-11 15:23:38 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-12-11 15:23:38 +0000 |
commit | 7a6894da30b52820f1cf4b7bf788abc66efa4c4a (patch) | |
tree | 00efb97c6c91914024f7cc2d4e20e64c9171afe0 /build_tools | |
parent | d76d45ef2dbf5c8e51bcb90d1549cd7da147b148 (diff) |
* Close bug #11511.
* Some other cleanups of uninstall-modules.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3424 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/uninstall-modules | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/build_tools/uninstall-modules b/build_tools/uninstall-modules index d70255c..5d984f0 100755 --- a/build_tools/uninstall-modules +++ b/build_tools/uninstall-modules @@ -1,17 +1,21 @@ #!/bin/sh -# uninstall-modules-sh +# uninstall-modules # # Remove all the modules passed in on the command line from the modules # directory. This script is called by the makefile. -# -# USAGE: uninstall-modules-sh <modules dir> modules to delete ... KERNEL_MODULES_DIR=$1 shift -MODULES=$@ +MODULES="$*" -function usage { +usage() { echo "$0: Used to delete kernel modules from the modules directory." + echo "" + echo "Usage:" + echo " $0 MODULES_BASE_DIR mod1 [mod2 [...]]" + echo "" + echo " MODULES_BASE_DIR - typically /lib/odules/KVERS" + echo " modN - (optinally partial) module name to remove." } if [ -z "$KERNEL_MODULES_DIR" ]; then |