aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-04-22 18:46:35 +0200
committerDavid Runge <dave@sleepmap.de>2016-04-22 18:46:35 +0200
commit9007603576a8600d400109a14a9d34eeee0d3551 (patch)
tree20a63a41c2e7da87a4c7fe9550e1d241720de6ca
parent09cf998f7cc555d1f4b9856eb7579bfc7f151d0c (diff)
downloaddotfiles-9007603576a8600d400109a14a9d34eeee0d3551.tar.gz
dotfiles-9007603576a8600d400109a14a9d34eeee0d3551.tar.bz2
dotfiles-9007603576a8600d400109a14a9d34eeee0d3551.tar.xz
dotfiles-9007603576a8600d400109a14a9d34eeee0d3551.zip
.zsh.after/functions.zsh: Adding additional device identifiers for the backup disk.
-rw-r--r--.zsh.after/functions.zsh6
1 files changed, 5 insertions, 1 deletions
diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh
index deb47ed..c9ea095 100644
--- a/.zsh.after/functions.zsh
+++ b/.zsh.after/functions.zsh
@@ -303,7 +303,11 @@ lopen() {
fi
;;
"backup")
- if [ -L "/dev/disk/by-id/usb-ST950042_0ASG_55DFFFFFFFFF-0:0" ]; then
+ if [ -L "/dev/disk/by-uuid/e003337a-33e9-4691-bc57-e77243e55de5" ];then
+ sudo cryptsetup luksOpen "/dev/disk/by-uuid/e003337a-33e9-4691-bc57-e77243e55de5" $1
+ elif [ -L "/dev/disk/by-id/ata-ST9500420ASG_5VJ5TRWD" ]; then
+ sudo cryptsetup luksOpen "/dev/disk/by-id/ata-ST9500420ASG_5VJ5TRWD" $1
+ elif [ -L "/dev/disk/by-id/usb-ST950042_0ASG_55DFFFFFFFFF-0:0" ]; then
sudo cryptsetup luksOpen "/dev/disk/by-id/usb-ST950042_0ASG_55DFFFFFFFFF-0:0" $1
else
echo "Error! Device $1 is not available"