diff --git a/firmware.sh b/firmware.sh index df86569..6cc7e65 100644 --- a/firmware.sh +++ b/firmware.sh @@ -154,13 +154,13 @@ echo -e "" # ensure hardware write protect disabled [[ "$wpEnabled" = true ]] && { exit_red "\nHardware write-protect enabled, cannot flash Full ROM firmware."; return 1; } -#special warning for EVE -if [ "$device" = "eve" ]; then -echo_yellow "VERY IMPORTANT: flashing your Pixelbook is serious business. -There is currently no way easy to unbrick if something goes wrong. -Only do this if you understand and accept the risk, because it's a -paperweight if something goes wrong. -(there have been no bricks so far, but the possibility exists)" +#special warning for CR50 devices +if [[ "$isStock" = true && "$hasCR50" = true ]]; then +echo_yellow "VERY IMPORTANT: flashing your Chromebook is serious business. +To ensure recovery in case something goes wrong when flashing, +be sure to set the ccd capability 'FlashAP Always' using your +USB-C debug cable, otherwise recovery will involve disassembling +your device (which is very difficult in some cases)." echo_yellow "If you wish to continue, type: 'I ACCEPT' and press enter." read -e diff --git a/functions.sh b/functions.sh index 875e92d..50c4fae 100644 --- a/functions.sh +++ b/functions.sh @@ -40,6 +40,7 @@ hasLegacyOption=false hasShellball=false wpEnabled=false hasLAN=false +hasCR50=false hsw_boxes=('' '' '' ''); hsw_books=('' '' '' '' ''); @@ -560,6 +561,7 @@ esac [[ "$isHswBox" = true || "$isBdwBox" = true || "$isHswBook" = true || "$isBdwBook" = true || "$isBaytrail" = true \ || "$isBraswell" = true || "$isSkylake" = true || "$isSnbIvb" = "true" || "$isApl" = "true" || "$isKbl" = "true" ]] || isUnsupported=true [[ "$isHswBox" = true || "$isBdwBox" = true || "${kbl_boxes[@]}" =~ "$device" || "$device" = "ninja" || "$device" = "buddy" ]] && hasLAN=true +[[ "$isKbl" = true || "$isApl" = true ]] && hasCR50=true #get device firmware info echo -e "\nGetting device/system info..."