diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-01-07 00:20:16 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-01-07 00:20:16 +0100 |
commit | 4486f6bda62aa2d478ff3240a50c017b98f6cd03 (patch) | |
tree | 8b984f81e0463b7e328ea02ea5e24bfe0c615b51 | |
parent | bd3f7607d08d74947b5ee2434e6f295944372a3f (diff) | |
download | rvnit-4486f6bda62aa2d478ff3240a50c017b98f6cd03.tar.gz rvnit-4486f6bda62aa2d478ff3240a50c017b98f6cd03.tar.xz rvnit-4486f6bda62aa2d478ff3240a50c017b98f6cd03.zip |
propagate reboot state to shutdown oneshots
-rw-r--r-- | rvnit.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rvnit.c b/rvnit.c index 0acf6ef..70dace8 100644 --- a/rvnit.c +++ b/rvnit.c @@ -743,6 +743,11 @@ cont2: LOG("shutting down"); + if (want_reboot) { + static char rvnit_want_reboot[] = "RVNIT_WANT_REBOOT=1"; + putenv(rvnit_want_reboot); + } + for (level = 99; level >= 0; level--) { fatal: ; // arrives with level < 99 |