1 /* vi: set sw=4 ts=4: */
3 * Mini insmod implementation for busybox
5 * Copyright (C) 2008 Timo Teras <timo.teras@iki.fi>
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
13 int insmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
14 int insmod_main(int argc UNUSED_PARAM, char **argv)
20 * 2.6 style insmod has no options and required filename
21 * (not module name - .ko can't be omitted).
22 * 2.4 style insmod can take module name without .o
23 * and performs module search in default directories
27 IF_FEATURE_2_4_MODULES(
28 getopt32(argv, INSMOD_OPTS INSMOD_ARGS);
36 rc = bb_init_module(filename, parse_cmdline_module_options(argv));
38 bb_error_msg("can't insert '%s': %s", filename, moderror(rc));