[svn-commits] tzafrir: branch 1.2 r3424 - /branches/1.2/build_tools/uninstall-modules

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Dec 11 09:23:38 CST 2007


Author: tzafrir
Date: Tue Dec 11 09:23:38 2007
New Revision: 3424

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3424
Log:
* Close bug #11511.
* Some other cleanups of uninstall-modules.

Modified:
    branches/1.2/build_tools/uninstall-modules

Modified: branches/1.2/build_tools/uninstall-modules
URL: http://svn.digium.com/view/zaptel/branches/1.2/build_tools/uninstall-modules?view=diff&rev=3424&r1=3423&r2=3424
==============================================================================
--- branches/1.2/build_tools/uninstall-modules (original)
+++ branches/1.2/build_tools/uninstall-modules Tue Dec 11 09:23:38 2007
@@ -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




More information about the svn-commits mailing list