~carbslinux/repository

ref: 3e90bcf9811dd3dc5d397fbfe18d0ed84a4fac65 repository/core/sinit/files/sinit.post.shutdown -rw-r--r-- 293 bytes
3e90bcf9Cem Keylan repository: move ubase and sinit to core 1 year, 10 months ago
                                                                                
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