summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/system-hosted.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/system-hosted.c')
-rw-r--r--firmware/target/hosted/system-hosted.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/hosted/system-hosted.c b/firmware/target/hosted/system-hosted.c
index ce47fd5f5c..c4ae5a404f 100644
--- a/firmware/target/hosted/system-hosted.c
+++ b/firmware/target/hosted/system-hosted.c
@@ -90,6 +90,7 @@ static void sig_handler(int sig, siginfo_t *siginfo, void *context)
void power_off(void)
{
backlight_hw_off();
+ sync();
system("/sbin/poweroff");
while (1); /* halt */
}