diff options
author | David Runge <dave@sleepmap.de> | 2015-12-31 16:27:59 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2015-12-31 16:27:59 +0100 |
commit | 6a8cfbbff5f257771b95a37777b619fcd4f30a84 (patch) | |
tree | 4eaf2ad71b5ae48002b6461bc0a86b35ac916a0e | |
parent | 482634913cf8aa891a48bdb45242061ee9297814 (diff) | |
download | dotfiles-6a8cfbbff5f257771b95a37777b619fcd4f30a84.tar.gz dotfiles-6a8cfbbff5f257771b95a37777b619fcd4f30a84.tar.bz2 dotfiles-6a8cfbbff5f257771b95a37777b619fcd4f30a84.tar.xz dotfiles-6a8cfbbff5f257771b95a37777b619fcd4f30a84.zip |
.zsh.after/functions.zsh: Added umount options for media device.
-rw-r--r-- | .zsh.after/functions.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index 99b3486..deb47ed 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -358,6 +358,9 @@ lclose() { if [[ $HOST == "homey" ]]; then sudo systemctl stop rpc-{idmapd,mountd} rpcbind fi + if [ $1 = "media" ]; then + sudo umount /mnt/{music,photos} + fi sudo umount /mnt/$1 sudo cryptsetup luksClose $1 #restart services that blocked the umount |