aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/files/sinit.post.shutdown
blob: 16deba740622c8440f86c5f582b645d7c8ac2bb5 (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..."
			/usr/bin/ubase-box halt -r 
			;;
		poweroff) 
			out "Requesting system poweroff..."
			/usr/bin/ubase-box halt -p 
			;;
	esac
fi