aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/source/system/other/local
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/source/system/other/local')
-rw-r--r--src/lib/source/system/other/local/down8
-rw-r--r--src/lib/source/system/other/local/type1
-rw-r--r--src/lib/source/system/other/local/up10
3 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/source/system/other/local/down b/src/lib/source/system/other/local/down
new file mode 100644
index 0000000..0a47f3d
--- /dev/null
+++ b/src/lib/source/system/other/local/down
@@ -0,0 +1,8 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+elglob -0 SCRIPTS /etc/local.d/*.down
+
+forx -pE SCRIPT { ${SCRIPTS} }
+ ${SCRIPT}
diff --git a/src/lib/source/system/other/local/type b/src/lib/source/system/other/local/type
new file mode 100644
index 0000000..bdd22a1
--- /dev/null
+++ b/src/lib/source/system/other/local/type
@@ -0,0 +1 @@
+oneshot
diff --git a/src/lib/source/system/other/local/up b/src/lib/source/system/other/local/up
new file mode 100644
index 0000000..3a553ff
--- /dev/null
+++ b/src/lib/source/system/other/local/up
@@ -0,0 +1,10 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+
+fdmove -c 2 1
+
+elglob -0 SCRIPTS /etc/local.d/*.up
+
+forx -pE SCRIPT { ${SCRIPTS} }
+ ${SCRIPT}