Skip to content

Commit

Permalink
Remove dGPU verification
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankk2308 committed Dec 20, 2018
1 parent a8428df commit 315a64c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions purge-nvda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
Expand Down Expand Up @@ -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/ <//' | 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)"
Expand All @@ -177,7 +171,6 @@ perform_sys_check() {
check_macos_version
elevate_privileges
check_patch
find_nv_dg
return 0
}

Expand Down

0 comments on commit 315a64c

Please sign in to comment.