diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2016-03-26 10:41:19 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2016-03-26 10:41:19 -0700 |
commit | 56722d915bfe8c9ff6ee2933328ff18fb5bf2f64 (patch) | |
tree | e34402b2003908d1f3982ae829af250f47169a40 | |
parent | 2ad7b83085f4284fc4562114d43c6fdd4c51a6a2 (diff) | |
download | dotfiles-56722d915bfe8c9ff6ee2933328ff18fb5bf2f64.tar.gz |
start work on kill-ssh-and-umount
-rwxr-xr-x | bin/kill-ssh-and-umount | 7 | ||||
-rwxr-xr-x | bin/sync-for-dionysus | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bin/kill-ssh-and-umount b/bin/kill-ssh-and-umount new file mode 100755 index 00000000..ccb8e3e0 --- /dev/null +++ b/bin/kill-ssh-and-umount @@ -0,0 +1,7 @@ +#!/bin/sh + +. "$HOME/.shenv" + +# TODO +# lsof $1 | grep ssh | cut -d' ' -f +sudo umount $1 diff --git a/bin/sync-for-dionysus b/bin/sync-for-dionysus index 6be27cbc..c0095470 100755 --- a/bin/sync-for-dionysus +++ b/bin/sync-for-dionysus @@ -21,7 +21,7 @@ else cd /media/swhitton/SPWHITTON/doc 2>/dev/null && git annex add && git annex sync --content || true cd "$HOME/lib/dionysus" && git annex add && git annex sync --content athena # try to sync nickflash again - cd /media/swhitton/SPWHITTON/doc 2>/dev/null && git annex sync --content && sudo umount /media/swhitton/SPWHITTON || true + cd /media/swhitton/SPWHITTON/doc 2>/dev/null && git annex sync --content && kill-ssh-and-umount /media/swhitton/SPWHITTON || true athena_cmd lib/dionysus "git annex merge" athena_cmd doc "mr sync" |