aboutsummaryrefslogtreecommitdiff
path: root/modutils/modprobe.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-10-15 11:29:02 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-10-15 11:29:02 +0200
commitc15613c9757f5a26da3623c1bcfa3580c81b74c3 (patch)
tree2da9f22659e539ec07a05a655269e9ca4f48f6d8 /modutils/modprobe.c
parentf2710d02210bbba4a9580c11ff053b01081eaf54 (diff)
downloadbusybox-w32-c15613c9757f5a26da3623c1bcfa3580c81b74c3.tar.gz
busybox-w32-c15613c9757f5a26da3623c1bcfa3580c81b74c3.tar.bz2
busybox-w32-c15613c9757f5a26da3623c1bcfa3580c81b74c3.zip
modutils/*: move applet bits into corresponding *.c files
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'modutils/modprobe.c')
-rw-r--r--modutils/modprobe.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index ab35628f4..a5cf4babf 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -8,17 +8,7 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 8 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
9 */ 9 */
10 10
11/* Note that unlike older versions of modules.dep/depmod (busybox and m-i-t), 11//applet:IF_MODPROBE(APPLET(modprobe, _BB_DIR_SBIN, _BB_SUID_DROP))
12 * we expect the full dependency list to be specified in modules.dep.
13 * Older versions would only export the direct dependency list.
14 */
15#include "libbb.h"
16#include "modutils.h"
17#include <sys/utsname.h>
18#include <fnmatch.h>
19
20//#define DBG(fmt, ...) bb_error_msg("%s: " fmt, __func__, ## __VA_ARGS__)
21#define DBG(...) ((void)0)
22 12
23//usage:#if !ENABLE_MODPROBE_SMALL 13//usage:#if !ENABLE_MODPROBE_SMALL
24//usage:#define modprobe_notes_usage 14//usage:#define modprobe_notes_usage
@@ -98,6 +88,19 @@
98//usage: ) 88//usage: )
99//usage:#endif /* !ENABLE_MODPROBE_SMALL */ 89//usage:#endif /* !ENABLE_MODPROBE_SMALL */
100 90
91#include "libbb.h"
92#include "modutils.h"
93#include <sys/utsname.h>
94#include <fnmatch.h>
95
96//#define DBG(fmt, ...) bb_error_msg("%s: " fmt, __func__, ## __VA_ARGS__)
97#define DBG(...) ((void)0)
98
99/* Note that unlike older versions of modules.dep/depmod (busybox and m-i-t),
100 * we expect the full dependency list to be specified in modules.dep.
101 * Older versions would only export the direct dependency list.
102 */
103
101/* Note that usage text doesn't document various 2.4 options 104/* Note that usage text doesn't document various 2.4 options
102 * we pull in through INSMOD_OPTS define */ 105 * we pull in through INSMOD_OPTS define */
103 106