aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/files/sinit.pre.shutdown
blob: af0d6f4fdf7b134489883a384755e28eb1975fe4 (plain)
1
2
3
4
5
6
7
8
9
10
if [ "$SINIT_SHUTDOWN_HOOKS" = 1 ]; then
	case "$1" in
		reboot|poweroff)
			;;
		*)
			echo "Invalid action '$1' for rc.shutdown" 1>&2
			exit 1
			;;
	esac
fi