From 4b047ad61e53066e6c5d96f0f79ea3f194938c84 Mon Sep 17 00:00:00 2001
From: David Oberhollenzer <david.oberhollenzer@tele2.at>
Date: Tue, 17 Jul 2018 22:39:27 +0200
Subject: Add a module auto loading service

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
---
 services/Makemodule.am | 2 +-
 services/modules.in    | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 services/modules.in

(limited to 'services')

diff --git a/services/Makemodule.am b/services/Makemodule.am
index 75ab76d..4cad483 100644
--- a/services/Makemodule.am
+++ b/services/Makemodule.am
@@ -6,7 +6,7 @@ init_DATA += services/sigterm services/sync services/devfs
 init_DATA += services/sysfs services/procfs services/tmpfs
 init_DATA += services/vfs services/ifrename services/ifcfg
 init_DATA += services/dhcpcd services/dhcpcdmaster services/unbound
-init_DATA += services/dnsmasq services/ifdown
+init_DATA += services/dnsmasq services/ifdown services/modules
 
 if USYSLOGD
 init_DATA += services/usyslogd
diff --git a/services/modules.in b/services/modules.in
new file mode 100644
index 0000000..3e0b69c
--- /dev/null
+++ b/services/modules.in
@@ -0,0 +1,7 @@
+description "load kernel modules"
+type wait
+target boot
+after vfs
+before sysinit
+
+exec "@SCRIPTDIR@/modules_load.sh"
\ No newline at end of file
-- 
cgit v1.2.3