diff --git a/purge-nvda.sh b/purge-nvda.sh index 80ba12a..8d5c303 100755 --- a/purge-nvda.sh +++ b/purge-nvda.sh @@ -3,7 +3,7 @@ # purge-nvda.sh # Author(s): Mayank Kumar (mayankk2308, github.com / mac_editor, egpu.io) # License: Specified in LICENSE.md. -# Version: 3.0.1 +# Version: 3.0.2 # Re-written for scalability and better user interaction. @@ -28,7 +28,7 @@ BIN_CALL=0 SCRIPT_FILE="" # Script version -SCRIPT_MAJOR_VER="3" && SCRIPT_MINOR_VER="0" && SCRIPT_PATCH_VER="1" +SCRIPT_MAJOR_VER="3" && SCRIPT_MINOR_VER="0" && SCRIPT_PATCH_VER="2" SCRIPT_VER="${SCRIPT_MAJOR_VER}.${SCRIPT_MINOR_VER}.${SCRIPT_PATCH_VER}" # User input @@ -148,12 +148,6 @@ check_macos_version() { [[ ("${MACOS_MAJOR_VER}" < 13) || ("${MACOS_MAJOR_VER}" == 13 && "${MACOS_MINOR_VER}" < 4) ]] && echo "\n${BOLD}macOS 10.13.4 or later${NORMAL} required.\n" && exit $MACOS_VER_ERR } -# Check for discrete NVIDIA GPU -find_nv_dg() { - GPU_VENDOR="$(ioreg -n GFX0@0 | grep \"vendor-id\" | cut -d "=" -f2 | sed 's/ //' | cut -c1-4)" - [[ "${GPU_VENDOR}" != "de10" ]] && echo "\nThis script only supports macs with ${BOLD}discrete NVIDIA GPUs${NORMAL}.\n" && exit -} - # Check patch status check_patch() { BOOT_ARGS_DATA="$(nvram boot-args 2>/dev/null)" @@ -177,7 +171,6 @@ perform_sys_check() { check_macos_version elevate_privileges check_patch - find_nv_dg return 0 }