Check existing firmware key filenames for iOS 8/9

This commit is contained in:
LukeZGD 2024-07-22 20:05:20 +08:00
parent c66a881ded
commit efe7de0b4c

View File

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