diff options
-rw-r--r-- | .zsh.after/functions.zsh | 6 |
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" |