mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +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>
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_hi = fp_timer >> 8;;
|
||||||
fp.timer_minutes_lo = fp_timer & 0xFF;
|
fp.timer_minutes_lo = fp_timer & 0xFF;
|
||||||
|
|
||||||
|
system("/etc/init.d/rcK");
|
||||||
|
|
||||||
fd = open("/dev/display", O_RDONLY);
|
fd = open("/dev/display", O_RDONLY);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
perror("/dev/display");
|
perror("/dev/display");
|
||||||
|
Reference in New Issue
Block a user