Update 2 files
- /home/.chezmoiscripts/universal/run_onchange_after_45-vmware.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_46_virtualbox.tmpl
This commit is contained in:
parent
a599bb9517
commit
b4f8f537b5
2 changed files with 20 additions and 7 deletions
|
@ -56,12 +56,25 @@ if command -v vmware > /dev/null; then
|
|||
logg info '/usr/lib/vmware/isoimages/darwin.iso is already present on the system so VMware macOS unlocking will not be performed'
|
||||
fi
|
||||
|
||||
### Start / enable VMWare USB Arbitrator
|
||||
if command -v vmware-usbarbitrator.service > /dev/null; then
|
||||
sudo systemctl enable vmware-usbarbitrator.service
|
||||
sudo systemctl restart vmware-usbarbitrator.service
|
||||
else
|
||||
logg warn '`vmware-usbarbitrator` does not exist in the PATH'
|
||||
if [[ ! "$(grep Microsoft /proc/version)" ]]; then
|
||||
### Start / enable VMWare service
|
||||
logg info 'Ensuring `vmware.service` is enabled and running'
|
||||
sudo systemctl enable vmware.service
|
||||
sudo systemctl restart vmware.service
|
||||
|
||||
### Start / enable VMWare Workstation Server service
|
||||
logg info 'Ensuring `vmware-workstation-server.service` is enabled and running'
|
||||
sudo systemctl enable vmware-workstation-server.service
|
||||
sudo systemctl restart vmware-workstation-server.service
|
||||
|
||||
### Start / enable VMWare USB Arbitrator service
|
||||
if command -v vmware-usbarbitrator.service > /dev/null; then
|
||||
logg info 'Ensuring `vmware-usbarbitrator.service` is enabled and running'
|
||||
sudo systemctl enable vmware-usbarbitrator.service
|
||||
sudo systemctl restart vmware-usbarbitrator.service
|
||||
else
|
||||
logg warn '`vmware-usbarbitrator` does not exist in the PATH'
|
||||
fi
|
||||
fi
|
||||
else
|
||||
logg info 'VMware host modules are present'
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
### Run logic if VirtualBox is installed
|
||||
if command -v VirtualBox > /dev/null; then
|
||||
### Install VirtualBox extension pack if it is not installed already
|
||||
if [[ ! -d /usr/lib/virtualbox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack/ ]]; then
|
||||
if [ ! -d /usr/lib/virtualbox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack ]; then
|
||||
logg info 'Acquiring VirtualBox version information'
|
||||
VBOX_VERSION="$(VirtualBox --help | head -n 1 | cut -f 6 -d' ')"
|
||||
VBOX_VERSION="${VBOX_VERSION//v}"
|
||||
|
|
Loading…
Reference in a new issue