aboutsummaryrefslogtreecommitdiff
path: root/modutils/insmod.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-05-03 10:34:35 +0000
committerEric Andersen <andersen@codepoet.org>2002-05-03 10:34:35 +0000
commitc088c582bfc035138eec6234ed7dd43215e3555f (patch)
tree41ef2f48c12bdf044164e7db3d3e2dfba655c0eb /modutils/insmod.c
parent95bf6da637f81576ba4c27f7e3d00925a3db39d5 (diff)
downloadbusybox-c088c582bfc035138eec6234ed7dd43215e3555f.tar.gz
Patch from Robert Griebl <griebl@gmx.de> to ignore the -s flag
Diffstat (limited to 'modutils/insmod.c')
-rw-r--r--modutils/insmod.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index cbd423e18..a2d718eb5 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -140,7 +140,7 @@
#ifndef MODUTILS_MODULE_H
static const int MODUTILS_MODULE_H = 1;
-#ident "$Id: insmod.c,v 1.81 2002/04/12 00:28:59 andersen Exp $"
+#ident "$Id: insmod.c,v 1.82 2002/05/03 10:34:35 andersen Exp $"
/* This file contains the structures used by the 2.0 and 2.1 kernels.
We do not use the kernel headers directly because we do not wish
@@ -357,7 +357,7 @@ int delete_module(const char *);
#ifndef MODUTILS_OBJ_H
static const int MODUTILS_OBJ_H = 1;
-#ident "$Id: insmod.c,v 1.81 2002/04/12 00:28:59 andersen Exp $"
+#ident "$Id: insmod.c,v 1.82 2002/05/03 10:34:35 andersen Exp $"
/* The relocatable object is manipulated using elfin types. */
@@ -3336,7 +3336,7 @@ extern int insmod_main( int argc, char **argv)
#endif
/* Parse any options */
- while ((opt = getopt(argc, argv, "fkvxLo:")) > 0) {
+ while ((opt = getopt(argc, argv, "fksvxLo:")) > 0) {
switch (opt) {
case 'f': /* force loading */
flag_force_load = 1;
@@ -3344,6 +3344,12 @@ extern int insmod_main( int argc, char **argv)
case 'k': /* module loaded by kerneld, auto-cleanable */
flag_autoclean = 1;
break;
+ case 's': /* log to syslog */
+ /* log to syslog -- not supported */
+ /* but kernel needs this for request_module(), */
+ /* as this calls: modprobe -k -s -- <module> */
+ /* so silently ignore this flag */
+ break;
case 'v': /* verbose output */
flag_verbose = 1;
break;