diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2016-06-26 16:47:23 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2016-06-26 16:47:23 -0400 |
commit | eb5d7e7553db76f870dd19883bebc8a16d75204b (patch) | |
tree | f0bbf074acd1fc8945a4c94a308367093186ff88 /import/photobox_dispatch.sh | |
parent | 46460164481f43ded6968e865da24828d20dc7b7 (diff) |
Diffstat (limited to 'import/photobox_dispatch.sh')
-rwxr-xr-x | import/photobox_dispatch.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/import/photobox_dispatch.sh b/import/photobox_dispatch.sh new file mode 100755 index 0000000..432ae4e --- /dev/null +++ b/import/photobox_dispatch.sh @@ -0,0 +1,7 @@ +#!/bin/bash +readonly photoregex='.*\(jpg\|raf\|cr2\)' +readonly mountpoint=$(mktemp -u /mnt/photoimport/tmp.XXXX) +( +mount "$DEVNAME" "$mountpoint" +systemctl start --no-block photobox_import +) 2>&1 | systemd-cat -t photobox_import |