From 9007603576a8600d400109a14a9d34eeee0d3551 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 22 Apr 2016 18:46:35 +0200 Subject: .zsh.after/functions.zsh: Adding additional device identifiers for the backup disk. --- .zsh.after/functions.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3-70-g09d2