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