sync before killing nickel

Hopefully good enough to avoid trashing the DB
This commit is contained in:
NiLuJe
2015-04-26 23:42:59 +02:00
parent bb6b21fe23
commit 476ae3322c

View File

@@ -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