aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-10-22 23:46:49 +0200
committerDavid Runge <dave@sleepmap.de>2015-10-22 23:46:49 +0200
commit3fd1308ec86aa941bbed02c299ab5d57a48ee404 (patch)
treeba5fd7e55e86ec713d986404ee3f096554fefbaa
parent8d15b60dff15bb6936a18fc21d1e8d5d5870ad8e (diff)
downloaddotfiles-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.zsh6
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