From a53f5f63d7aa4247c8e1c8d7ac734cc335ecfb07 Mon Sep 17 00:00:00 2001 From: Mayank Kumar Date: Thu, 7 May 2020 23:44:50 -0700 Subject: [PATCH] Remove wait for eGPU as it does not resolve KP --- purge-wrangler.sh | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/purge-wrangler.sh b/purge-wrangler.sh index ccf4e85..c06bcea 100755 --- a/purge-wrangler.sh +++ b/purge-wrangler.sh @@ -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 @@ -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="" @@ -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 @@ -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