mirror of
https://github.com/troglobit/finit.git
synced 2026-11-10 16:31:21 +00:00
Only load modules at bootstrap
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
b43bca529c
commit
686193b701
1 file changed
+5
-1
+5
-1
@@ -300,8 +300,12 @@ static void parse_dynamic(char *line, struct timeval *mtime)
|
|||||||
|
|
||||||
/* Kernel module to load at bootstrap */
|
/* Kernel module to load at bootstrap */
|
||||||
if (MATCH_CMD(line, "module ", x)) {
|
if (MATCH_CMD(line, "module ", x)) {
|
||||||
char *mod = strip_line(x);
|
char *mod;
|
||||||
|
|
||||||
|
if (runlevel != 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
mod = strip_line(x);
|
||||||
strcpy(cmd, "modprobe ");
|
strcpy(cmd, "modprobe ");
|
||||||
strlcat(cmd, mod, sizeof(cmd));
|
strlcat(cmd, mod, sizeof(cmd));
|
||||||
run_interactive(cmd, "Loading kernel module %s", mod);
|
run_interactive(cmd, "Loading kernel module %s", mod);
|
||||||
|
|||||||
Reference in new issue
Block a user