From 98c64da4cd3d21c93fcd5f66267d0e3b87e73235 Mon Sep 17 00:00:00 2001 From: Vincent-FK Date: Mon, 18 Jan 2021 20:57:58 +0100 Subject: [PATCH] force sync at shutdown: instant action now working all the time --- .../rootfs-overlay/usr/local/sbin/shutdown_funkey | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/shutdown_funkey b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/shutdown_funkey index 54ed4ca..e791168 100755 --- a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/shutdown_funkey +++ b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/shutdown_funkey @@ -1,19 +1,22 @@ #!/bin/sh +# Sync before all else +sync + +# Notif fullscreen "Shutting down" +notif_set 0 "^^^^^^^^ SHUTTING DOWN...^^^^^^^^" + # Notify system, reboot in progress REBOOTING_FILE="/run/rebooting" touch $REBOOTING_FILE -# Notif fullscreen "Shutting down" -notif_set 0 "^^^^^^^^ SHUTTING DOWN...^^^^^^^^" - # Shutdown amp start_audio_amp 0 >/dev/null 2>&1 # Force Read Only ro -# Unmount writeable partition to force +# Force unmount writeable partition umount -r /mnt # Poweroff