aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-12-31 16:27:59 +0100
committerDavid Runge <dave@sleepmap.de>2015-12-31 16:27:59 +0100
commit6a8cfbbff5f257771b95a37777b619fcd4f30a84 (patch)
tree4eaf2ad71b5ae48002b6461bc0a86b35ac916a0e
parent482634913cf8aa891a48bdb45242061ee9297814 (diff)
downloaddotfiles-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.zsh3
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