aboutsummaryrefslogtreecommitdiff
path: root/examples/etc/ninit/halt/run
diff options
context:
space:
mode:
authorKlaatu <[email protected]>2015-05-17 15:35:50 +1200
committerKlaatu <[email protected]>2015-05-17 15:35:50 +1200
commite6961c90da554ef46c84f94d0db5ef37bb23f0c2 (patch)
treee71acaa2790bae3d5dc8c56300a33111a3255b84 /examples/etc/ninit/halt/run
parentb0de699679e8f1e39af847ed172d1ba605b4370c (diff)
example ninit scripts
Diffstat (limited to 'examples/etc/ninit/halt/run')
-rwxr-xr-xexamples/etc/ninit/halt/run7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/etc/ninit/halt/run b/examples/etc/ninit/halt/run
new file mode 100755
index 0000000..032843d
--- /dev/null
+++ b/examples/etc/ninit/halt/run
@@ -0,0 +1,7 @@
+#!/bin/serdo -c
+
+sleep 5
+. /etc/ninit/reboot/stop_all
+
+/sbin/ninit-runlevel 0 /etc/rc.d/rc.0
+exec /sbin/ninit-reboot ENABLE_CAD