summaryrefslogtreecommitdiff
path: root/samizdat-eject.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-27 06:54:47 -0400
committerAndrew Cady <d@jerkface.net>2016-04-27 06:54:47 -0400
commit8c8a748158859f7aa05edb4f230f6da233f3306f (patch)
treeaf2196770acd6958ba4d970039e84823a1fcb958 /samizdat-eject.sh
parent595f36b990fd3fc99e6d911465a2e68c0f3a6eab (diff)
samizdat eject accepts target filename
Diffstat (limited to 'samizdat-eject.sh')
-rwxr-xr-xsamizdat-eject.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/samizdat-eject.sh b/samizdat-eject.sh
index 04ee610..f5360a7 100755
--- a/samizdat-eject.sh
+++ b/samizdat-eject.sh
@@ -10,6 +10,10 @@ btrfs_subdevices()
10 10
11devices=$(btrfs_subdevices /) || exit 1 11devices=$(btrfs_subdevices /) || exit 1
12 12
13target=$1
14
15[ -e "$target" ] && exit 1
16
13set -- 17set --
14seen= 18seen=
15for dev in $devices; do 19for dev in $devices; do
@@ -23,7 +27,7 @@ done
23 27
24copy() 28copy()
25{ 29{
26 mdadm_copy_eject /dev/md55 /root/samizdat.iso 30 mdadm_copy_eject /dev/md55 "$target"
27} 31}
28 32
29remove() 33remove()