carbon-s6-init

s6-linux-init configuration for Carbon
git clone https://ccx.te2000.cz/git/carbon-s6-init
Log | Files | Refs

rc.shutdown.final (762B)


      1 #!/bin/sh -e
      2 
      3 ### Things to do *right before* the machine gets rebooted or
      4 ### powered off, at the very end of the shutdown sequence,
      5 ### when all the filesystems are unmounted.
      6 
      7 ### This is a last resort hook; normally nothing should be
      8 ### done here (your rc.shutdown script should have taken care
      9 ### of everything) and you should leave this script empty.
     10 
     11 ### Some distributions, however, may need to perform some
     12 ### actions after unmounting the filesystems: typically if
     13 ### an additional teardown action is required on a filesystem
     14 ### after unmounting it, or if the system needs to be
     15 ### pivot_rooted before it can be shut down, etc.
     16 
     17 ### Those are all exceptional cases. If you don't know for
     18 ### certain that you need to do something here, you don't.