summaryrefslogtreecommitdiff
path: root/import/photobox_dispatch.sh
blob: 432ae4ed0d90e8459594e61b49b9b6f1cc451eb6 (plain)
1
2
3
4
5
6
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