projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Syslogd will not go to background if "-n" is given. Better help
[oweals/busybox.git]
/
modutils
/
lsmod.c
diff --git
a/modutils/lsmod.c
b/modutils/lsmod.c
index d9c40eaaf2deabb5b25da78eb8b5d9f66c36a891..9b72275cd264eb42864ed996aed61fbbee07cc02 100644
(file)
--- a/
modutils/lsmod.c
+++ b/
modutils/lsmod.c
@@
-2,7
+2,7
@@
/*
* Mini lsmod implementation for busybox
*
/*
* Mini lsmod implementation for busybox
*
- * Copyright (C) 1999 by Lineo, inc.
+ * Copyright (C) 1999
,2000
by Lineo, inc.
* Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
*
* This program is free software; you can redistribute it and/or modify
* Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
*
* This program is free software; you can redistribute it and/or modify
@@
-25,13
+25,16
@@
#include <stdio.h>
#include <stdio.h>
+extern int lsmod_main(int argc, char **argv)
+{
+#if defined BB_FEATURE_USE_DEVPS_PATCH
+ char *cmd[] = { "cat", "/dev/modules", "\0" };
+#else
#if ! defined BB_FEATURE_USE_PROCFS
#error Sorry, I depend on the /proc filesystem right now.
#endif
#if ! defined BB_FEATURE_USE_PROCFS
#error Sorry, I depend on the /proc filesystem right now.
#endif
-
-extern int lsmod_main(int argc, char **argv)
-{
char *cmd[] = { "cat", "/proc/modules", "\0" };
char *cmd[] = { "cat", "/proc/modules", "\0" };
+#endif
exit(cat_main(3, cmd));
}
exit(cat_main(3, cmd));
}