summaryrefslogtreecommitdiffstats
path: root/macbook/local.service
diff options
context:
space:
mode:
Diffstat (limited to 'macbook/local.service')
-rw-r--r--macbook/local.service7
1 files changed, 5 insertions, 2 deletions
diff --git a/macbook/local.service b/macbook/local.service
index ddf2555..bf4fba0 100644
--- a/macbook/local.service
+++ b/macbook/local.service
@@ -1,10 +1,13 @@
-# place to /etc/systemd/system/local.service
-
[Unit]
Description=Run local commands after boot
+ConditionFileIsExecutable=/usr/bin/local.sh
[Service]
+Type=oneshot
+# below is needed otherwise ExecStop would execute right after start and unmount
+RemainAfterExit=Yes
ExecStart=/usr/bin/local.sh
+ExecStop=/usr/bin/umount /mnt/mac-bind
[Install]
WantedBy=multi-user.target