summaryrefslogtreecommitdiffstats
path: root/src/lib/source/system/other/modules/up
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/source/system/other/modules/up')
-rw-r--r--src/lib/source/system/other/modules/up19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/source/system/other/modules/up b/src/lib/source/system/other/modules/up
new file mode 100644
index 0000000..67edc94
--- /dev/null
+++ b/src/lib/source/system/other/modules/up
@@ -0,0 +1,19 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+fdmove -c 2 1
+
+elglob -0sd'' FILES /etc/modules-load.d/*
+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
+ kldload ${MODULE}