Minor fixes to rmmod. First pass at insmod (not yet working).

-Erik
This commit is contained in:
Erik Andersen 1999-12-17 01:08:27 +00:00
parent c144e330c0
commit 6da0ae8183
6 changed files with 10 additions and 2 deletions

View File

@ -87,6 +87,9 @@ static const struct Applet applets[] = {
#ifdef BB_INIT //sbin
{"init", init_main},
#endif
#ifdef BB_INSMOD //sbin
{"insmod", insmod_main},
#endif
#ifdef BB_FEATURE_LINUXRC //
{"linuxrc", init_main},
#endif

View File

@ -87,6 +87,9 @@ static const struct Applet applets[] = {
#ifdef BB_INIT //sbin
{"init", init_main},
#endif
#ifdef BB_INSMOD //sbin
{"insmod", insmod_main},
#endif
#ifdef BB_FEATURE_LINUXRC //
{"linuxrc", init_main},
#endif

View File

@ -28,6 +28,7 @@
#define BB_HEAD
#define BB_HOSTNAME
#define BB_INIT
#define BB_INSMOD
#define BB_KILL
#define BB_KLOGD
//#define BB_LENGTH

View File

@ -79,6 +79,7 @@ extern int halt_main(int argc, char** argv);
extern int head_main(int argc, char** argv);
extern int hostname_main(int argc, char** argv);
extern int init_main(int argc, char** argv);
extern int insmod_main(int argc, char** argv);
extern int kill_main(int argc, char** argv);
extern int length_main(int argc, char** argv);
extern int ln_main(int argc, char** argv);

View File

@ -29,7 +29,7 @@
/* And the system call of the day is... */
extern int delete_module (const char * __name);
_syscall1(int, delete_module, const char *, name)
static const char rmmod_usage[] =

View File

@ -29,7 +29,7 @@
/* And the system call of the day is... */
extern int delete_module (const char * __name);
_syscall1(int, delete_module, const char *, name)
static const char rmmod_usage[] =