summaryrefslogtreecommitdiff
path: root/skel
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-08-19 13:15:40 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-08-19 13:15:40 +0000
commit244dddd0ada79388a27f33e73b173764c581fca1 (patch)
tree9534fd0cadc2418c57188647b73e4d69883f3443 /skel
parent01b815a073101521e0b53cf4ce8fa9c81b5fc5d8 (diff)
downloads6-linux-init-244dddd0ada79388a27f33e73b173764c581fca1.tar.xz
Add stage 4 hook support
Diffstat (limited to 'skel')
-rwxr-xr-xskel/rc.shutdown.final18
1 files changed, 18 insertions, 0 deletions
diff --git a/skel/rc.shutdown.final b/skel/rc.shutdown.final
new file mode 100755
index 0000000..3f46b87
--- /dev/null
+++ b/skel/rc.shutdown.final
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+### Things to do *right before* the machine gets rebooted or
+### powered off, at the very end of the shutdown sequence,
+### when all the filesystems are unmounted.
+
+### This is a last resort hook; normally nothing should be
+### done here (your rc.shutdown script should have taken care
+### of everything) and you should leave this script empty.
+
+### Some distributions, however, may need to perform some
+### actions after unmounting the filesystems: typically if
+### an additional teardown action is required on a filesystem
+### after unmounting it, or if the system needs to be
+### pivot_rooted before it can be shut down, etc.
+
+### Those are all exceptional cases. If you don't know for
+### certain that you need to do something here, you don't.