~carbslinux/repository

ref: 051404c997c633388071203be5c24f28dfb9f14c repository/core/sinit/files/sinit.post.shutdown -rw-r--r-- 248 bytes
051404c9Cem Keylan sinit: removed ubase dependency, build respawn and halt onto sinit 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..."
			halt -r 
			;;
		*) 
			out "Requesting system poweroff..."
			halt -p 
			;;
	esac
fi