aboutsummaryrefslogtreecommitdiff
path: root/extra/sinit/files/sinit.pre.shutdown
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-13 20:48:33 +0300
committerCem Keylan <cem@ckyln.com>2020-01-13 20:48:33 +0300
commit11b53c25d767fa16671bc0b42158e61c7a2de19f (patch)
tree7761a24b5e1c345eccaa5efb515b592dd564a42c /extra/sinit/files/sinit.pre.shutdown
parent86ba980c93f32253648f56560246e51df507a817 (diff)
downloadrepository-11b53c25d767fa16671bc0b42158e61c7a2de19f.tar.gz
sinit: add to extra at 1.1
Diffstat (limited to 'extra/sinit/files/sinit.pre.shutdown')
-rw-r--r--extra/sinit/files/sinit.pre.shutdown10
1 files changed, 10 insertions, 0 deletions
diff --git a/extra/sinit/files/sinit.pre.shutdown b/extra/sinit/files/sinit.pre.shutdown
new file mode 100644
index 00000000..af0d6f4f
--- /dev/null
+++ b/extra/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