aboutsummaryrefslogtreecommitdiff
path: root/modutils/lsmod.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-12-23 15:12:27 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-01-01 13:01:04 +0100
commitd28cd9900a58a902b1bf53404a250dfb345b2e96 (patch)
tree7e832618ab92babf39751ef1ffb65b30577765bd /modutils/lsmod.c
parent909edacc5ef8960784c5ec1ab529522bed1deaa8 (diff)
downloadbusybox-w32-d28cd9900a58a902b1bf53404a250dfb345b2e96.tar.gz
busybox-w32-d28cd9900a58a902b1bf53404a250dfb345b2e96.tar.bz2
busybox-w32-d28cd9900a58a902b1bf53404a250dfb345b2e96.zip
modprobe-small: make applets individually selectable
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'modutils/lsmod.c')
-rw-r--r--modutils/lsmod.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index ee85fb0fb..24589420a 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -9,25 +9,26 @@
9 */ 9 */
10//config:config LSMOD 10//config:config LSMOD
11//config: bool "lsmod" 11//config: bool "lsmod"
12//config: default n 12//config: default y
13//config: depends on !MODPROBE_SMALL
14//config: select PLATFORM_LINUX 13//config: select PLATFORM_LINUX
15//config: help 14//config: help
16//config: lsmod is used to display a list of loaded modules. 15//config: lsmod is used to display a list of loaded modules.
17//config: 16//config:
18//config:config FEATURE_LSMOD_PRETTY_2_6_OUTPUT 17//config:config FEATURE_LSMOD_PRETTY_2_6_OUTPUT
19//config: bool "Pretty output" 18//config: bool "Pretty output"
20//config: default n 19//config: default y
21//config: depends on LSMOD 20//config: depends on LSMOD && !MODPROBE_SMALL
22//config: select PLATFORM_LINUX 21//config: select PLATFORM_LINUX
23//config: help 22//config: help
24//config: This option makes output format of lsmod adjusted to 23//config: This option makes output format of lsmod adjusted to
25//config: the format of module-init-tools for Linux kernel 2.6. 24//config: the format of module-init-tools for Linux kernel 2.6.
26//config: Increases size somewhat. 25//config: Increases size somewhat.
27 26
28//applet:IF_LSMOD(APPLET(lsmod, BB_DIR_SBIN, BB_SUID_DROP)) 27//applet:IF_LSMOD(IF_NOT_MODPROBE_SMALL(APPLET(lsmod, BB_DIR_SBIN, BB_SUID_DROP)))
29 28
29//kbuild:ifneq ($(CONFIG_MODPROBE_SMALL),y)
30//kbuild:lib-$(CONFIG_LSMOD) += lsmod.o modutils.o 30//kbuild:lib-$(CONFIG_LSMOD) += lsmod.o modutils.o
31//kbuild:endif
31 32
32//usage:#if !ENABLE_MODPROBE_SMALL 33//usage:#if !ENABLE_MODPROBE_SMALL
33//usage:#define lsmod_trivial_usage 34//usage:#define lsmod_trivial_usage