aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/files/sinit.pre.shutdown
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-13 23:13:19 +0300
committerCem Keylan <cem@ckyln.com>2020-01-13 23:13:19 +0300
commit3e90bcf9811dd3dc5d397fbfe18d0ed84a4fac65 (patch)
treee181ca1b4ed5e5b38c0d17da89b259860798d3c1 /core/sinit/files/sinit.pre.shutdown
parent11b53c25d767fa16671bc0b42158e61c7a2de19f (diff)
downloadrepository-3e90bcf9811dd3dc5d397fbfe18d0ed84a4fac65.tar.gz
repository: move ubase and sinit to core
Diffstat (limited to 'core/sinit/files/sinit.pre.shutdown')
-rw-r--r--core/sinit/files/sinit.pre.shutdown10
1 files changed, 10 insertions, 0 deletions
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