mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
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>
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6709ae0feb
Author: J. Krieg <bellum07@googlemail.com>
Date: 2017-11-18 (Sat, 18 Nov 2017)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user