shutdown_helper: add calling '/etc/init.d/rcK'

...to prevent possible file system corruption prior shutting down

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
J. Krieg
2017-11-18 22:32:28 +01:00
committed by Thilo Graf
parent 490d46ec8d
commit 6709ae0feb

View File

@@ -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");