From 940458ff2205323a573e6e31497e1e314db5398b Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 21 Sep 2018 12:05:47 -0400 Subject: wd is dead, update scripts to use tosh instead --- bin/wd-bak | 2 +- bin/wd-mount | 8 +++++--- 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 -- cgit v1.2.3