Allow kernel modules to be loaded from /etc/finit.d/*.conf
@@ -232,16 +232,6 @@ static void parse_static(char *line)
return;
}
- if (MATCH_CMD(line, "module ", x)) {
- char *mod = strip_line(x);
-
- strcpy(cmd, "modprobe ");
- strlcat(cmd, mod, sizeof(cmd));
- run_interactive(cmd, "Loading kernel module %s", mod);
-
- return;
- }
-
if (MATCH_CMD(line, "mknod ", x)) {
char *dev = strip_line(x);
@@ -307,6 +297,17 @@ static void parse_dynamic(char *line, struct timeval *mtime)
if (MATCH_CMD(line, "#", x))
return;
+ /* Kernel module to load at bootstrap */
+ if (MATCH_CMD(line, "module ", x)) {
+ char *mod = strip_line(x);
+
+ strcpy(cmd, "modprobe ");
+ strlcat(cmd, mod, sizeof(cmd));
+ run_interactive(cmd, "Loading kernel module %s", mod);
+
+ return;
+ }
+
/* Monitored daemon, will be respawned on exit */
if (MATCH_CMD(line, "service ", x)) {
service_register(SVC_TYPE_SERVICE, x, mtime, NULL);
