From 4be7cbedb5f10025c9a59728848b2d7c4a42c195 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Thu, 13 Aug 2020 10:16:02 +0300 Subject: shalt: sync filesystems --- bin/shalt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/shalt.c b/bin/shalt.c index 1fa5428..9dc0028 100644 --- a/bin/shalt.c +++ b/bin/shalt.c @@ -2,7 +2,7 @@ #include #include #include -#include +#include static char *argv0; #include "arg.h" @@ -17,6 +17,8 @@ usage(void) int main(int argc, char *argv[]) { + sync(); + ARGBEGIN { case 'p': reboot(RB_POWER_OFF); -- cgit v1.2.3