commit | 4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53 | [log] [tgz] |
---|---|---|
author | The Android Open Source Project <initial-contribution@android.com> | Tue Oct 21 07:00:00 2008 -0700 |
committer | The Android Open Source Project <initial-contribution@android.com> | Tue Oct 21 07:00:00 2008 -0700 |
tree | 54fd1b2695a591d2306d41264df67c53077b752c |
Initial Contribution
diff --git a/toolbox/lsmod.c b/toolbox/lsmod.c new file mode 100644 index 0000000..8b55ee6 --- /dev/null +++ b/toolbox/lsmod.c
@@ -0,0 +1,10 @@ +#include <stdio.h> + +extern int cat_main(int argc, char **argv); + +int lsmod_main(int argc, char **argv) +{ + char *cat_argv[] = { "cat", "/proc/modules", NULL }; + return cat_main(2, cat_argv); +} +