浏览代码
sync data before ejecting drives
master
Arun Prakash Jana
5 年前
找不到此签名对应的密钥
GPG 密钥 ID: A75979F35C080412
共有
1 个文件被更改,包括
1 次插入 和
0 次删除
-
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" |
|
|
|