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.post.shutdown | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 core/sinit/files/sinit.post.shutdown (limited to 'core/sinit/files/sinit.post.shutdown') diff --git a/core/sinit/files/sinit.post.shutdown b/core/sinit/files/sinit.post.shutdown new file mode 100644 index 00000000..16deba74 --- /dev/null +++ b/core/sinit/files/sinit.post.shutdown @@ -0,0 +1,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 -- cgit v1.2.3