blob: 866dcc841ca8f111f2fb14bb2cac20fca2358b32 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
PATH=/usr/bin:/usr/sbin
MSG="System is going down..."
# We check for this file after receiving a SIGCONT to move to stage3
chmod 100 /run/runit/stopit
# We check for this file in stage3 to halt or reboot
chmod 100 /run/runit/reboot
# Proceed with shutdown process
echo "$MSG" | wall
|