19 lines
449 B
SYSTEMD
19 lines
449 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=VirtualBox Linux kernel module
|
||
|
|
ConditionVirtualization=!container
|
||
|
|
DefaultDependencies=no
|
||
|
|
Before=systemd-modules-load.service
|
||
|
|
After=systemd-udevd.service
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=oneshot
|
||
|
|
RemainAfterExit=yes
|
||
|
|
ExecStart=/sbin/modprobe vboxdrv
|
||
|
|
ExecStart=/sbin/modprobe vboxnetflt
|
||
|
|
ExecStart=/sbin/modprobe vboxnetadp
|
||
|
|
ExecStop=/sbin/rmmod vboxnetflt
|
||
|
|
ExecStop=/sbin/rmmod vboxnetadp
|
||
|
|
ExecStop=/sbin/rmmod vboxdrv
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=sysinit.target
|