summaryrefslogtreecommitdiffstats
path: root/systemd-local-cmds/etc/systemd/system/local.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd-local-cmds/etc/systemd/system/local.service')
-rw-r--r--systemd-local-cmds/etc/systemd/system/local.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/systemd-local-cmds/etc/systemd/system/local.service b/systemd-local-cmds/etc/systemd/system/local.service
new file mode 100644
index 0000000..bf4fba0
--- /dev/null
+++ b/systemd-local-cmds/etc/systemd/system/local.service
@@ -0,0 +1,13 @@
+[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