summarylogtreecommitdiffstats
path: root/vmware-patch.sh
diff options
context:
space:
mode:
authorBen White2018-02-09 07:02:32 +0100
committerBen White2018-02-09 07:02:32 +0100
commitda362b4d3d0a46f34c791dc2f2620704ae3c4acd (patch)
tree5a2ea163d66acfa110a0799d0c00295f0ddd3911 /vmware-patch.sh
parentf3ed20877e73b3d3c2d20f3edc1ba9eb97b9b4c6 (diff)
downloadaur-da362b4d3d0a46f34c791dc2f2620704ae3c4acd.tar.gz
It is working again. Use vmware-unpatch or reinstall vmware if necessary and always reboot.
Diffstat (limited to 'vmware-patch.sh')
-rw-r--r--vmware-patch.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/vmware-patch.sh b/vmware-patch.sh
index 0e8d4ee28e0f..a64898bf9142 100644
--- a/vmware-patch.sh
+++ b/vmware-patch.sh
@@ -29,7 +29,7 @@ while [[ $1 ]]; do
-a* | --all-kernels) all=1 ;;
-f* | --force) force=1 ;;
-k* | --kernel) kernel=1 ;;
- -v* | --verbose) verbose=1 ;;
+ -v* | --verbose) verbose=1; ;;
-V* | --version) print_version; exit 0 ;;
-h* | --help) usage; exit 0 ;;
-*) echo "$(basename $0): error: bad argument: $opt"
@@ -138,6 +138,9 @@ for kernel in ${kernels[@]}; do
# Detect applicable patches (/usr/lib/vmware/modules/patches/[mod]-[ver]-[kernel].patch)
unset patches
+ if [[ $verbose ]]; then
+ printf '# Computer status: Patch: %s, Kernel: %s\n' "$ver" "$kernel"
+ fi
for patch in patches/*; do
# Some variables
ver_patch=$(echo $patch | cut -d "-" -f2)
@@ -151,6 +154,9 @@ for kernel in ${kernels[@]}; do
ver2=$major.${ver#*.}
fi
+ if [[ $verbose ]]; then
+ printf '# Checking Patch: %s, Kernel: %s\n' "$ver2" "$kernel_major"
+ fi
# Is product version not lower and kernel version not higher in patch name?
if (( $(vercmp "$ver_patch" "$ver2") == 0 )) && (( $(vercmp "$kernel_patch" "$kernel_major") >= 0 )); then
printf 'Patch: %s, %s\n' "$ver_patch" "$ver2"