--- trunk/mkinitrd-magellan/busybox/modutils/insmod.c 2010/04/29 20:38:48 983 +++ trunk/mkinitrd-magellan/busybox/modutils/insmod.c 2010/05/30 11:32:42 984 @@ -16,9 +16,17 @@ char *filename; int rc; - USE_FEATURE_2_4_MODULES( + /* 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 .o + * and performs module search in default directories + * or in $MODPATH. + */ + + IF_FEATURE_2_4_MODULES( getopt32(argv, INSMOD_OPTS INSMOD_ARGS); - argv += optind-1; + argv += optind - 1; ); filename = *++argv; @@ -27,7 +35,7 @@ rc = bb_init_module(filename, parse_cmdline_module_options(argv)); if (rc) - bb_error_msg("cannot insert '%s': %s", filename, moderror(rc)); + bb_error_msg("can't insert '%s': %s", filename, moderror(rc)); return rc; }