summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/310
-rwxr-xr-xabs/core/runit-scripts/runitscripts/3.local3
2 files changed, 13 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/3 b/abs/core/runit-scripts/runitscripts/3
index 50b3e92..d4b0a6a 100755
--- a/abs/core/runit-scripts/runitscripts/3
+++ b/abs/core/runit-scripts/runitscripts/3
@@ -9,4 +9,14 @@ then
kill -9 $pid 2>/dev/null
fi
export PREVLEVEL=3
+
+#user added stuff for level 3 of runit
+if [ -e /etc/runit/3.local ]
+then
+ #exec the file
+ stat_busy /etc/runit/3.local
+ /etc/runit/3.local
+ stat_done
+fi
+
/etc/rc.shutdown
diff --git a/abs/core/runit-scripts/runitscripts/3.local b/abs/core/runit-scripts/runitscripts/3.local
new file mode 100755
index 0000000..4aa8220
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/3.local
@@ -0,0 +1,3 @@
+#!/bin/bash
+#local user shutdown script, run at the end of runit 3
+