From b2fec086b9f498102537e0ff936138b2960e4082 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 25 Apr 2014 23:20:32 +0200 Subject: Initial import of runit init scripts based on ignite. I did not use ignite because it needs bash, and I don't really want it. --- ctrlaltdel | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 ctrlaltdel (limited to 'ctrlaltdel') diff --git a/ctrlaltdel b/ctrlaltdel new file mode 100755 index 0000000..af70ed6 --- /dev/null +++ b/ctrlaltdel @@ -0,0 +1,11 @@ +#!/bin/sh + +PATH=/usr/bin:/usr/sbin +MSG="System is going down..." + +# We check for this file in stage3 to halt or reboot +touch /run/runit/reboot + +# Proceed with shutdown process +touch /etc/runit/stopit +chmod 100 /etc/runit/stopit && echo "$MSG" | wall -- cgit 1.4.1