~carbslinux/repository

ref: edc945a68cb7e2d74b6cdfa0de33bc382be70c2b repository/core/sinit/files/sinit.post.shutdown -rw-r--r-- 286 bytes
edc945a6Cem Keylan sinit: remove pre shutdown hook 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 
			;;
		*) 
			out "Requesting system poweroff..."
			/usr/bin/ubase-box halt -p 
			;;
	esac
fi