about summary refs log tree commit diff
path: root/ctrlaltdel
blob: af70ed686a91cd875ef6dd7a9c06472fdbc8ee19 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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