Skip to content

Commit

Permalink
Remove wait for eGPU as it does not resolve KP
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankk2308 committed May 8, 2020
1 parent a8ff5b0 commit a53f5f6
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions purge-wrangler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# purge-wrangler.sh
# Author(s): Mayank Kumar (mayankk2308, github.com / mac_editor, egpu.io)
# License: Specified in LICENSE.md.
# Version: 6.2.4
# Version: 6.2.5

# ----- ENVIRONMENT

Expand Down Expand Up @@ -32,7 +32,7 @@ is_bin_call=0
call_script_file=""

# Script version
script_major_ver="6" && script_minor_ver="2" && script_patch_ver="4"
script_major_ver="6" && script_minor_ver="2" && script_patch_ver="5"
script_ver="${script_major_ver}.${script_minor_ver}.${script_patch_ver}"
latest_script_data=""
latest_release_dwld=""
Expand Down Expand Up @@ -843,25 +843,6 @@ detect_egpu() {
printfc "Detection failed. Please provide more information."
}

### Wait for eGPU to be disconnected
wait_for_egpu_disconnect() {
[[ -z "${egpu_vendor}" ]] && return
local detected_egpu_ven="${egpu_vendor}"
local base_msg="eGPU disconnected."
printf "Please disconnect eGPU. ${bold}Waiting...${normal}"
IFS=''
while :; do
ioreg_info="$(ioreg -n display@0)"
retrieve_egpu_data
local key=""
read -r -s -n 1 -t 1 key
[[ "${key}" == $'\e' ]] && base_msg="Disconnect skipped." && break
[[ -z "${egpu_vendor}" ]] && break
done
egpu_vendor="${detected_egpu_ven}"
printfc "${base_msg}\n"
}

### Manual eGPU setup
manual_setup_egpu() {
[[ "${needs_ti82}" == "No" ]] && yesno_action "${bold}Enable Ti82${normal}?" "enable_ti82 && printfn" "printfn \"Skipping Ti82 support.\n\"" -n
Expand All @@ -880,7 +861,6 @@ auto_setup_egpu() {
backup_system
printfn
[[ ${needs_ti82} == "Yes" ]] && enable_ti82 && printfn
wait_for_egpu_disconnect
if [[ "${egpu_vendor}" == "1002" ]]
then
if [[ "${egpu_arch}" =~ "Navi" && ${is_10151_or_newer} != 1 ]]; then
Expand Down

0 comments on commit a53f5f6

Please sign in to comment.