diff options
author | Jean-Marc Lenoir | 2021-06-19 11:17:59 +0200 |
---|---|---|
committer | Jean-Marc Lenoir | 2021-06-19 11:17:59 +0200 |
commit | 46de50fd42f7145ae7ab5a5e2ce3f096cae1c6fb (patch) | |
tree | 2d72394245a9b43cfcc5091ad5a59a36093f6176 /vmware-workstation.install | |
parent | 7f9df56101305328980e6e8f20f5c6df2b99697b (diff) | |
download | aur-46de50fd42f7145ae7ab5a5e2ce3f096cae1c6fb.tar.gz |
Implement .path units to start services only when a VM is started
Diffstat (limited to 'vmware-workstation.install')
-rw-r--r-- | vmware-workstation.install | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/vmware-workstation.install b/vmware-workstation.install index 87af8548b555..8e58daa8703e 100644 --- a/vmware-workstation.install +++ b/vmware-workstation.install @@ -2,13 +2,24 @@ post_install() { cat << EOF ==> Before using VMware, you need to reboot or load vmw_vmci and vmmon kernel modules (in a terminal on root: modprobe -a vmw_vmci vmmon) -==> You may also need to enable some of these services: -- vmware-networks.service: to have network access inside VMs -- vmware-usbarbitrator.service: to connect USB devices inside VMs +==> You may also need to enable some of the following services: +- vmware-networks: to have network access inside VMs +- vmware-usbarbitrator: to connect USB devices inside VMs +These services can be activated during boot by enabling .service units or only when a VM is started by enabling .path units. EOF } +post_upgrade() { + if (( $(vercmp "$2" "16.1.2-2") < 0 )); then + cat << EOF + +Now VMware services can be activated only when a VM is started by enabling .path units instead of .service units. + +EOF + fi +} + post_remove() { cat << EOF |