diff options
author | Ryan Kavanagh <rak@debian.org> | 2018-09-21 12:05:47 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@debian.org> | 2018-09-21 12:05:47 -0400 |
commit | 940458ff2205323a573e6e31497e1e314db5398b (patch) | |
tree | 7639a59ece07216cc8781cf5b470939c144b7d9d /bin | |
parent | update savehooks and aliases (diff) |
wd is dead, update scripts to use tosh instead
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/wd-bak | 2 | ||||
-rwxr-xr-x | bin/wd-mount | 8 |
2 files changed, 6 insertions, 4 deletions
@@ -7,7 +7,7 @@ if ! mount | grep /media/wd-bak > /dev/null ; then exit 1 fi -rsync -avhHP --delete-after /media/wd/* /media/wd-bak +rsync -avhHP --delete-after /media/t/* /media/wd-bak sudo umount /media/wd-bak sudo cryptdisks_stop wd-bak diff --git a/bin/wd-mount b/bin/wd-mount index 3b1312c..b5bb834 100755 --- a/bin/wd-mount +++ b/bin/wd-mount @@ -1,8 +1,10 @@ #!/bin/sh -if ! mount | grep -w /media/wd > /dev/null ; then - if [ -e /dev/disk/by-uuid/71bc8a1f-1942-4341-8ce1-8f8f3bf42d1a ]; then - sudo cryptdisks_start wd && mount /dev/mapper/wd +if ! mount | grep -w /media/t > /dev/null ; then + if [ -e /dev/disk/by-uuid/0c5bcd92-bf08-4a21-a117-0ba9c0c31862 ]; then + sudo cryptdisks_start tosh && \ + sudo zpool import ztosh && \ + sudo mount /var/lib/mpd/music fi fi |