diff options
Diffstat (limited to 'units/wait-mount-session@.service')
-rw-r--r-- | units/wait-mount-session@.service | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/units/wait-mount-session@.service b/units/wait-mount-session@.service new file mode 100644 index 0000000..93c096d --- /dev/null +++ b/units/wait-mount-session@.service @@ -0,0 +1,9 @@ +[Unit] +Description=Wait until %f is mounted +DefaultDependencies=no +Before=basic.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/bin/sh -c 'while ! `mountpoint -q %f`; do sleep 1; done' |