Minor fixes to rmmod. First pass at insmod (not yet working).
-Erik
This commit is contained in:
parent
c144e330c0
commit
6da0ae8183
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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[] =
|
||||
|
Loading…
Reference in New Issue
Block a user