sync data before ejecting drives

This commit is contained in:
Arun Prakash Jana 2019-05-05 21:15:36 +05:30
parent 21ee3489c2
commit 0e8cb05045
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 0 deletions

View File

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