From a599bb951722f93c86509acb44fc39ba9b3134c6 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Sun, 5 Feb 2023 04:01:40 +0000 Subject: [PATCH] Update 4 files - /home/.chezmoiscripts/universal/run_onchange_after_25-gnome-extension-settings.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_19-gnome-extension-settings.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_45-vmware.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_50-rclone.tmpl --- ... run_onchange_after_19-gnome-extension-settings.tmpl} | 0 .../universal/run_onchange_after_45-vmware.tmpl | 9 +++++++++ .../universal/run_onchange_after_50-rclone.tmpl | 6 +++--- 3 files changed, 12 insertions(+), 3 deletions(-) rename home/.chezmoiscripts/universal/{run_onchange_after_25-gnome-extension-settings.tmpl => run_onchange_after_19-gnome-extension-settings.tmpl} (100%) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_25-gnome-extension-settings.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_19-gnome-extension-settings.tmpl similarity index 100% rename from home/.chezmoiscripts/universal/run_onchange_after_25-gnome-extension-settings.tmpl rename to home/.chezmoiscripts/universal/run_onchange_after_19-gnome-extension-settings.tmpl diff --git a/home/.chezmoiscripts/universal/run_onchange_after_45-vmware.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_45-vmware.tmpl index 8b55a8a5..34e738ba 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_45-vmware.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_45-vmware.tmpl @@ -8,6 +8,7 @@ if command -v vmware > /dev/null; then ### Build kernel modules if they are not present if [ ! -f "/lib/modules/$(uname -r)/misc/vmmon.ko" ] || [ ! -f "/lib/modules/$(uname -r)/misc/vmnet.ko" ]; then + ### Build VMWare host modules logg info 'Building VMware host modules' if sudo vmware-modconfig --console --install-all; then logg success 'Built VMWare host modules successfully with `sudo vmware-modconfig --console --install-all`' @@ -54,6 +55,14 @@ if command -v vmware > /dev/null; then else 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' + fi else logg info 'VMware host modules are present' fi diff --git a/home/.chezmoiscripts/universal/run_onchange_after_50-rclone.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_50-rclone.tmpl index e79df726..051ef25b 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_50-rclone.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_50-rclone.tmpl @@ -49,10 +49,10 @@ if command -v rclone > /dev/null; then ### Add user Rclone mount logg info 'Adding user S3 rclone mount (available at ~/.local/mnt/s3)' - sudo cp -f "${XDG_CONFIG_HOME:-$HOME/.config}/rclone/s3-user.service" "/etc/systemd/system/${USER}-s3.service" + sudo cp -f "${XDG_CONFIG_HOME:-$HOME/.config}/rclone/s3-user.service" "/etc/systemd/system/s3-${USER}.service" logg info 'Enabling / restarting the S3 user mount' - sudo systemctl enable "${USER}-s3" - sudo systemctl restart "${USER}-s3" + sudo systemctl enable "s3-${USER}" + sudo systemctl restart "s3-${USER}" fi else logg info '`rclone` is not available'