From 3e90bcf9811dd3dc5d397fbfe18d0ed84a4fac65 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Mon, 13 Jan 2020 23:13:19 +0300 Subject: repository: move ubase and sinit to core --- core/sinit/files/sinit.pre.shutdown | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 core/sinit/files/sinit.pre.shutdown (limited to 'core/sinit/files/sinit.pre.shutdown') diff --git a/core/sinit/files/sinit.pre.shutdown b/core/sinit/files/sinit.pre.shutdown new file mode 100644 index 00000000..af0d6f4f --- /dev/null +++ b/core/sinit/files/sinit.pre.shutdown @@ -0,0 +1,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 -- cgit v1.2.3