aboutsummaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-07-16 20:57:15 +0000
committerMatt Kraai <kraai@debian.org>2000-07-16 20:57:15 +0000
commitbf181b9338152759fd56c8009e9a962a84808e7c (patch)
treee8c416c791c690f661c513340662e4e98ff3464a /modutils
parent3bd8bd89ee9d0b65bf279e1ecad826a5f2f0a217 (diff)
downloadbusybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.tar.gz
busybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.tar.bz2
busybox-w32-bf181b9338152759fd56c8009e9a962a84808e7c.zip
Extract usage information into a separate file.
Diffstat (limited to 'modutils')
-rw-r--r--modutils/insmod.c14
-rw-r--r--modutils/rmmod.c12
2 files changed, 2 insertions, 24 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 97c360be7..9daedf938 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -70,7 +70,7 @@
70#ifndef MODUTILS_MODULE_H 70#ifndef MODUTILS_MODULE_H
71#define MODUTILS_MODULE_H 1 71#define MODUTILS_MODULE_H 1
72 72
73#ident "$Id: insmod.c,v 1.17 2000/07/14 16:23:32 proski Exp $" 73#ident "$Id: insmod.c,v 1.18 2000/07/16 20:57:15 kraai Exp $"
74 74
75/* This file contains the structures used by the 2.0 and 2.1 kernels. 75/* This file contains the structures used by the 2.0 and 2.1 kernels.
76 We do not use the kernel headers directly because we do not wish 76 We do not use the kernel headers directly because we do not wish
@@ -276,7 +276,7 @@ int delete_module(const char *);
276#ifndef MODUTILS_OBJ_H 276#ifndef MODUTILS_OBJ_H
277#define MODUTILS_OBJ_H 1 277#define MODUTILS_OBJ_H 1
278 278
279#ident "$Id: insmod.c,v 1.17 2000/07/14 16:23:32 proski Exp $" 279#ident "$Id: insmod.c,v 1.18 2000/07/16 20:57:15 kraai Exp $"
280 280
281/* The relocatable object is manipulated using elfin types. */ 281/* The relocatable object is manipulated using elfin types. */
282 282
@@ -560,16 +560,6 @@ _syscall2(unsigned long, create_module, const char *, name, size_t, size)
560#endif 560#endif
561static char m_filename[BUFSIZ + 1] = "\0"; 561static char m_filename[BUFSIZ + 1] = "\0";
562static char m_fullName[BUFSIZ + 1] = "\0"; 562static char m_fullName[BUFSIZ + 1] = "\0";
563static const char insmod_usage[] =
564 "insmod [OPTION]... MODULE [symbol=value]...\n"
565#ifndef BB_FEATURE_TRIVIAL_HELP
566 "\nLoads the specified kernel modules into the kernel.\n\n"
567 "Options:\n"
568 "\t-f\tForce module to load into the wrong kernel version.\n"
569 "\t-k\tMake module autoclean-able.\n"
570 "\t-v\tverbose output\n" "\t-x\tdo not export externs\n"
571#endif
572;
573 563
574/*======================================================================*/ 564/*======================================================================*/
575 565
diff --git a/modutils/rmmod.c b/modutils/rmmod.c
index 3158686f0..da10b7fcf 100644
--- a/modutils/rmmod.c
+++ b/modutils/rmmod.c
@@ -32,18 +32,6 @@
32/* And the system call of the day is... */ 32/* And the system call of the day is... */
33_syscall1(int, delete_module, const char *, name) 33_syscall1(int, delete_module, const char *, name)
34 34
35
36static const char rmmod_usage[] =
37 "rmmod [OPTION]... [MODULE]...\n"
38#ifndef BB_FEATURE_TRIVIAL_HELP
39 "\nUnloads the specified kernel modules from the kernel.\n\n"
40 "Options:\n"
41 "\t-a\tTry to remove all unused kernel modules.\n"
42#endif
43 ;
44
45
46
47extern int rmmod_main(int argc, char **argv) 35extern int rmmod_main(int argc, char **argv)
48{ 36{
49 if (argc <= 1) { 37 if (argc <= 1) {