From 0e8cb050458e461061fd6a87bf605ae8611abaa1 Mon Sep 17 00:00:00 2001
From: Arun Prakash Jana <engineerarun@gmail.com>
Date: Sun, 5 May 2019 21:15:36 +0530
Subject: [PATCH] sync data before ejecting drives

---
 plugins/nmount | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins/nmount b/plugins/nmount
index ce9f99e6..8a12742c 100755
--- a/plugins/nmount
+++ b/plugins/nmount
@@ -19,6 +19,7 @@ fi
 echo
 
 if grep -qs "$dev " /proc/mounts; then
+    sync
     pumount "$dev"
     if [ "$?" -eq "0" ]; then
         udisksctl power-off -b /dev/"$dev"