aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/source/system/other/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/source/system/other/modules')
-rw-r--r--src/lib/source/system/other/modules/type1
-rw-r--r--src/lib/source/system/other/modules/up21
2 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/source/system/other/modules/type b/src/lib/source/system/other/modules/type
new file mode 100644
index 0000000..bdd22a1
--- /dev/null
+++ b/src/lib/source/system/other/modules/type
@@ -0,0 +1 @@
+oneshot
diff --git a/src/lib/source/system/other/modules/up b/src/lib/source/system/other/modules/up
new file mode 100644
index 0000000..3983ae1
--- /dev/null
+++ b/src/lib/source/system/other/modules/up
@@ -0,0 +1,21 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+fdmove -c 2 1
+
+define MODULE_CONF /etc/modules-load.d
+
+elglob -0sd'' FILES ${MODULE_CONF}/*
+if -x0 { eltest ${FILES} }
+define -sd'' SPLITFILES ${FILES}
+pipeline { cat ${SPLITFILES} }
+pipeline {
+ sed
+ -e "/^#/d"
+ -e "s/^[\ \t]*//g"
+ -e "s/[\ \t]*$//g"
+ -e "/^$/d"
+}
+forstdin -pE MODULE
+ modprobe -ab ${MODULE}