summaryrefslogtreecommitdiff
path: root/modutils/insmod.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-11-22 18:29:01 +0000
committerDenis Vlasenko2008-11-22 18:29:01 +0000
commit36309cf3f495dcfd4aba541425b34dd2455cccf2 (patch)
tree5ab06fac3af13f714ac6f69dfacf88246499ce10 /modutils/insmod.c
parentcc5feabeba2b1cbc3a1751af08f645b868967519 (diff)
downloadbusybox-36309cf3f495dcfd4aba541425b34dd2455cccf2.zip
busybox-36309cf3f495dcfd4aba541425b34dd2455cccf2.tar.gz
insmod: clarify module_name / file_name distinction
Diffstat (limited to 'modutils/insmod.c')
-rw-r--r--modutils/insmod.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 61ee500..4d211f5 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -16,9 +16,17 @@ int insmod_main(int argc UNUSED_PARAM, char **argv)
char *filename;
int rc;
+ /* Compat note:
+ * 2.6 style insmod has no options and required filename
+ * (not module name - .ko can't be omitted).
+ * 2.4 style insmod can take module name without .ko
+ * and performs module search in default directories
+ * or in $MODPATH.
+ */
+
USE_FEATURE_2_4_MODULES(
getopt32(argv, INSMOD_OPTS INSMOD_ARGS);
- argv += optind-1;
+ argv += optind - 1;
);
filename = *++argv;