From: Arun Prakash Jana Date: Sun, 5 May 2019 15:45:36 +0000 (+0530) Subject: sync data before ejecting drives X-Git-Tag: v2.5~40 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=0e8cb050458e461061fd6a87bf605ae8611abaa1;p=nnn.git sync data before ejecting drives --- 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"