Update warning for all CR50 devices

Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
Matt DeVillier
2019-06-23 18:32:55 -05:00
parent dd9b3e74e9
commit 646ece7906
2 changed files with 9 additions and 7 deletions

View File

@@ -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

View File

@@ -40,6 +40,7 @@ hasLegacyOption=false
hasShellball=false
wpEnabled=false
hasLAN=false
hasCR50=false
hsw_boxes=('<mccloud>' '<panther>' '<tricky>' '<zako>');
hsw_books=('<falco>' '<leon>' '<monroe>' '<peppy>' '<wolf>');
@@ -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..."