summaryrefslogtreecommitdiff
path: root/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-05-04 12:37:58 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-05-04 12:37:58 +0100
commitfe24e26dab14a10b77f9798a75fbaa94b7972430 (patch)
treea1415daf255e3e49bd9a37eed432a750a0b10289 /app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service
parentbd97f7a6e3122a2863af7af5e86742a52a90925e (diff)
Revert "app-emulation/virtualbox-guest-additions : drop"
This reverts commit c71b59670b83e6a80185729dab9f4ecbcc8a816a.
Diffstat (limited to 'app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service')
-rw-r--r--app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service
new file mode 100644
index 00000000..35f9ce24
--- /dev/null
+++ b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=VirtualBox Guest Additions
+ConditionVirtualization=oracle
+Before=display-manager.service
+
+[Service]
+Type=simple
+ExecStartPre=/sbin/modprobe vboxguest
+ExecStartPre=/sbin/modprobe vboxsf
+ExecStart=/usr/sbin/vboxguest-service --foreground
+ExecStopPost=/sbin/modprobe -r vboxsf
+ExecStopPost=/sbin/modprobe -r vboxguest
+PIDFile=/var/run/vboxguest-service.pid
+
+[Install]
+WantedBy=multi-user.target