summaryrefslogtreecommitdiffstats
path: root/macbook/local.service
blob: bf4fba000e8fc470cc35c51a17be3d0f7df08bc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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