aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2018-09-21 12:05:47 -0400
committerRyan Kavanagh <rak@debian.org>2018-09-21 12:05:47 -0400
commit940458ff2205323a573e6e31497e1e314db5398b (patch)
tree7639a59ece07216cc8781cf5b470939c144b7d9d
parentupdate savehooks and aliases (diff)
wd is dead, update scripts to use tosh instead
Diffstat (limited to '')
-rwxr-xr-xbin/wd-bak2
-rwxr-xr-xbin/wd-mount8
2 files changed, 6 insertions, 4 deletions
diff --git a/bin/wd-bak b/bin/wd-bak
index 95b122e..ede7a95 100755
--- a/bin/wd-bak
+++ b/bin/wd-bak
@@ -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