simple-init

A set of init binaries for linux
git clone git://depsterr.com/git/simple-init
Log | Files | Refs | README | LICENSE

commit 1bc3909d5da0c539769e2b427b92ebc848480034
parent a375f3ba10cd5adbf66348160ab52c48e7920d9f
Author: depsterr <depsterr@protonmail.com>
Date:   Sun, 31 May 2020 18:52:24 +0200

added disk sync

Diffstat:
Minitscripts/shutdown.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/initscripts/shutdown.c b/initscripts/shutdown.c @@ -12,6 +12,9 @@ int main(int argc, char* argv[]) { log_message("Saving random seed"); save_random_seed(); + log_message("Syncing"); + sync(); + log_message("Unmounting all filesystems"); char* swapcmd[] = { "swapoff", "-a", 0}; char* umountcmd[] = { "umount", "-ra", 0};