Skip to content

Instantly share code, notes, and snippets.

@tonylambiris
Last active November 19, 2020 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonylambiris/6a88d1ae2a420aade0a817096a8582f6 to your computer and use it in GitHub Desktop.
Save tonylambiris/6a88d1ae2a420aade0a817096a8582f6 to your computer and use it in GitHub Desktop.
Fix Corsair iCUE software by renaming all cpuid related files
#!/bin/sh
CORSAIR_DIR='C:\Program Files (x86)\Corsair\CORSAIR iCUE Software'
function isadmin() {
net session &>/dev/null
return $?
}
if ! $(isadmin); then
echo "Requires administrator privileges to run."
exit 1
fi
if test -d "${CORSAIR_DIR}"; then
pushd "${CORSAIR_DIR}" >/dev/null
find . -type f -iname '*cpuid*' -not -iname '*.bak' -exec mv -fv "{}" "{}.bak" \;
popd >/dev/null
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment