aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-09-22 21:24:37 +0200
committerDavid Runge <dave@sleepmap.de>2016-09-22 21:24:37 +0200
commit6d0b1ea3b98ef99649d5a6ea68a42fe021774cf6 (patch)
tree44b6044a4824918c422d039756e3010c82011e66
parenta7d6464071bff0cd0f4c83e54f641fbcd78b03ea (diff)
downloaddotfiles-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.zsh11
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")