aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/files/sinit.post.shutdown
blob: 4f3c793b08c35b6617f0e9e3d9e8b1cd02fe23d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# vim:filetype=sh

# We handle the shutdown from here

if [ "$SINIT_SHUTDOWN_HOOKS" = 1 ]; then
	case "$1" in
		reboot)	
			out "Requesting system reboot..."
			halt -r 
			;;
		*) 
			out "Requesting system poweroff..."
			halt -p 
			;;
	esac
fi