diff options
author | David Runge <dave@sleepmap.de> | 2016-09-22 21:24:37 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2016-09-22 21:24:37 +0200 |
commit | 6d0b1ea3b98ef99649d5a6ea68a42fe021774cf6 (patch) | |
tree | 44b6044a4824918c422d039756e3010c82011e66 | |
parent | a7d6464071bff0cd0f4c83e54f641fbcd78b03ea (diff) | |
download | dotfiles-6d0b1ea3b98ef99649d5a6ea68a42fe021774cf6.tar.gz dotfiles-6d0b1ea3b98ef99649d5a6ea68a42fe021774cf6.tar.bz2 dotfiles-6d0b1ea3b98ef99649d5a6ea68a42fe021774cf6.tar.xz dotfiles-6d0b1ea3b98ef99649d5a6ea68a42fe021774cf6.zip |
.zsh.after/functions.zsh: Add switch/case for trvlr to mount storage mSATA.
-rw-r--r-- | .zsh.after/functions.zsh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index 2c06e1c..d540cbc 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -268,6 +268,17 @@ lopen() { ;; esac ;; + "trvlr") + case $1 in + "storage") + sudo cryptsetup luksOpen "/dev/disk/by-uuid/3f781aab-24b5-4de0-8632-b9df922d6433" $1 + ;; + *) + echo "Error! Device $1 is not available" + return 1 + ;; + esac + ;; "dvzrv" | "trvlr" | "apu-serve") case $1 in "music") |