From 6709ae0feb9544a1cc4f45a982f9f7bd0f131ec8 Mon Sep 17 00:00:00 2001 From: "J. Krieg" Date: Sat, 18 Nov 2017 22:32:28 +0100 Subject: [PATCH] shutdown_helper: add calling '/etc/init.d/rcK' ...to prevent possible file system corruption prior shutting down Signed-off-by: Thilo Graf --- src/shutdown_helper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shutdown_helper.c b/src/shutdown_helper.c index 55fb76739..52acdfb93 100644 --- a/src/shutdown_helper.c +++ b/src/shutdown_helper.c @@ -55,6 +55,8 @@ int main(int argc, char **argv) fp.timer_minutes_hi = fp_timer >> 8;; fp.timer_minutes_lo = fp_timer & 0xFF; + system("/etc/init.d/rcK"); + fd = open("/dev/display", O_RDONLY); if (fd < 0) perror("/dev/display");