diff options
author | David Runge <dave@sleepmap.de> | 2015-10-22 23:46:49 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2015-10-22 23:46:49 +0200 |
commit | 3fd1308ec86aa941bbed02c299ab5d57a48ee404 (patch) | |
tree | ba5fd7e55e86ec713d986404ee3f096554fefbaa | |
parent | 8d15b60dff15bb6936a18fc21d1e8d5d5870ad8e (diff) | |
download | dotfiles-3fd1308ec86aa941bbed02c299ab5d57a48ee404.tar.gz dotfiles-3fd1308ec86aa941bbed02c299ab5d57a48ee404.tar.bz2 dotfiles-3fd1308ec86aa941bbed02c299ab5d57a48ee404.tar.xz dotfiles-3fd1308ec86aa941bbed02c299ab5d57a48ee404.zip |
.zsh.after/functions.zsh: Adding additional device for backup-audio, in case the harddrive is used in another case.
-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 e4a8969..91d21f8 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -276,7 +276,11 @@ lopen() { fi ;; "backup-audio") - sudo cryptsetup luksOpen /dev/disk/by-id/ata-HGST_HTS725050A7E630_TF755AWHHS9S1M $1 + if [ -L "/dev/disk/by-id/usb-HGST_HTS_725050A7E630_801130168383-0:0" ]; then + sudo cryptsetup luksOpen /dev/disk/by-id/usb-HGST_HTS_725050A7E630_801130168383-0:0 $1 + elif [ -L "/dev/disk/by-id/ata-HGST_HTS725050A7E630_TF755AWHHS9S1M" ]; then + sudo cryptsetup luksOpen /dev/disk/by-id/ata-HGST_HTS725050A7E630_TF755AWHHS9S1M $1 + fi ;; "backup") sudo cryptsetup luksOpen "/dev/disk/by-id/usb-ST950042_0ASG_55DFFFFFFFFF-0:0" $1 |