diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-05-05 21:15:36 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-05-22 08:44:19 +0530 |
commit | 0e8cb050458e461061fd6a87bf605ae8611abaa1 (patch) | |
tree | b5461c5278bad11c5ce25b88479e260951f12cd6 /plugins/nmount | |
parent | 21ee3489c29236a9197b6746f97f1c9f81bd0a48 (diff) | |
download | nnn-0e8cb050458e461061fd6a87bf605ae8611abaa1.tar.gz |
sync data before ejecting drives
Diffstat (limited to 'plugins/nmount')
-rwxr-xr-x | plugins/nmount | 1 |
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" |