aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/nmount
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-05-05 21:15:36 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-05-22 08:44:19 +0530
commit0e8cb050458e461061fd6a87bf605ae8611abaa1 (patch)
treeb5461c5278bad11c5ce25b88479e260951f12cd6 /plugins/nmount
parent21ee3489c29236a9197b6746f97f1c9f81bd0a48 (diff)
downloadnnn-0e8cb050458e461061fd6a87bf605ae8611abaa1.tar.gz
sync data before ejecting drives
Diffstat (limited to 'plugins/nmount')
-rwxr-xr-xplugins/nmount1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/nmount b/plugins/nmount
index ce9f99e..8a12742 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"