From 63577d9f3dbf0d3a8b148114e44577489e445cc8 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 12 Mar 2018 16:39:41 +0100 Subject: .config/cs/pre_umount/media: Adding post_mount and pre_umount scripts for device 'media'. --- .config/cs/post_mount/media | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 .config/cs/post_mount/media (limited to '.config/cs/post_mount/media') diff --git a/.config/cs/post_mount/media b/.config/cs/post_mount/media new file mode 100755 index 0000000..0e12ea7 --- /dev/null +++ b/.config/cs/post_mount/media @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -euo pipefail + +sudo mkdir -vp /mnt/{music,photos} +sudo mount -v --bind /mnt/media/music /mnt/music +sudo mount -v --bind /mnt/media/photos /mnt/photos +if [ ! -h ~/.cache/shotwell ]; then + ln -sv /mnt/photos/shotwell/ ~/.cache/shotwell +fi -- cgit v1.2.3-70-g09d2