From 6a8cfbbff5f257771b95a37777b619fcd4f30a84 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 31 Dec 2015 16:27:59 +0100 Subject: .zsh.after/functions.zsh: Added umount options for media device. --- .zsh.after/functions.zsh | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-54-g00ecf