Skip to content

Commit

Permalink
Check existing firmware key filenames for iOS 8/9
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeZGD committed Jul 22, 2024
1 parent c66a881 commit efe7de0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1806,6 +1806,14 @@ device_fw_key_check() {
log "Existing firmware keys are not valid. Deleting"
rm "$keys_path/index.html"
fi
case $build in
1[23]* )
if [[ $(cat "$keys_path/index.html" | sed "s|DeviceTree.${device_model}ap||g" | grep -c "${device_model}ap") != 0 ]]; then
log "Existing firmware keys seem to have incorrect filenames. Deleting"
rm "$keys_path/index.html"
fi
;;
esac
fi

if [[ ! -e "$keys_path/index.html" ]]; then
Expand Down

0 comments on commit efe7de0

Please sign in to comment.