diff options
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | build_tools/uninstall-modules (renamed from uninstall-modules-sh) | 14 |
2 files changed, 10 insertions, 6 deletions
@@ -544,7 +544,7 @@ BASENAMES=$(sort $(shell for x in $(ALL_MODULES); do basename $x; done)) uninstall-modules: ifeq ($(BUILDVER),linux24) else - @./uninstall-modules-sh $(DESTDIR)/lib/modules/$(KVERS) $(BASENAMES) + @./build_tools/uninstall-modules $(DESTDIR)/lib/modules/$(KVERS) $(BASENAMES) @for x in $(ALL_MODULES); do \ rm -f $(DESTDIR)/lib/modules/$(KVERS)/extra/$$x ; \ rm -f $(DESTDIR)/lib/modules/$(KVERS)/misc/$$x ; \ diff --git a/uninstall-modules-sh b/build_tools/uninstall-modules index d70255c..5d984f0 100755 --- a/uninstall-modules-sh +++ 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 |