Last active
November 19, 2020 09:21
-
-
Save tonylambiris/6a88d1ae2a420aade0a817096a8582f6 to your computer and use it in GitHub Desktop.
Fix Corsair iCUE software by renaming all cpuid related files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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