An update

This commit is contained in:
LukeZGD 2023-11-02 07:07:25 +08:00
parent b46c09586f
commit 2c72bd959f
2 changed files with 2 additions and 4 deletions

View File

@ -2086,7 +2086,7 @@ ipsw_prepare_bundle() {
echo -e "<key>RootFilesystemSize</key><integer>$RootSize</integer>" >> $NewPlist echo -e "<key>RootFilesystemSize</key><integer>$RootSize</integer>" >> $NewPlist
printf "<key>RamdiskOptionsPath</key><string>/usr/local/share/restore/options" >> $NewPlist printf "<key>RamdiskOptionsPath</key><string>/usr/local/share/restore/options" >> $NewPlist
if [[ $device_target_vers != "3"* && $device_target_vers != "4"* ]]; then if [[ $device_target_vers != "3"* && $device_target_vers != "4"* ]]; then
printf ".$device_model" >> $NewPlist printf ".%s" "$device_model" >> $NewPlist
fi fi
echo -e ".plist</string>" >> $NewPlist echo -e ".plist</string>" >> $NewPlist
echo -e "<key>SHA256</key><string>$IPSWSHA256</string>" >> $NewPlist echo -e "<key>SHA256</key><string>$IPSWSHA256</string>" >> $NewPlist
@ -2287,9 +2287,7 @@ patch_iboot() {
ipsw_prepare_ios4powder() { ipsw_prepare_ios4powder() {
local ExtraArgs="-apticket $shsh_path" local ExtraArgs="-apticket $shsh_path"
local ExtraArgs2="--boot-partition --boot-ramdisk --logo4 " local ExtraArgs2="--boot-partition --boot-ramdisk --logo4 "
local IV
local JBFiles=() local JBFiles=()
local Key
if [[ -e "$ipsw_custom.ipsw" ]]; then if [[ -e "$ipsw_custom.ipsw" ]]; then
log "Found existing Custom IPSW. Skipping IPSW creation." log "Found existing Custom IPSW. Skipping IPSW creation."
@ -4731,7 +4729,7 @@ main() {
"208.67.222.222") "208.67.222.222")
local check local check
for i in "${try[@]}"; do for i in "${try[@]}"; do
ping -c1 $try >/dev/null ping -c1 $i >/dev/null
check=$? check=$?
if [[ $check == 0 ]]; then if [[ $check == 0 ]]; then
break break