From 476ae3322cf349f8c57829f4d2c8a2e1849a3e21 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sun, 26 Apr 2015 23:42:59 +0200 Subject: [PATCH] sync before killing nickel Hopefully good enough to avoid trashing the DB --- platform/kobo/koreader.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/kobo/koreader.sh b/platform/kobo/koreader.sh index 48abbb2dd..174766da6 100755 --- a/platform/kobo/koreader.sh +++ b/platform/kobo/koreader.sh @@ -35,7 +35,9 @@ if pkill -0 nickel ; then fi if [ "${from_nickel}" == "true" ] ; then - # stop kobo software because is running + # flush disks, might help avoid trashing nickel's DB... + sync + # stop kobo software because it's running killall nickel hindenburg fmon 2>/dev/null fi