diff --git a/downr1n.sh b/downr1n.sh index 65a9843..78a9e3d 100755 --- a/downr1n.sh +++ b/downr1n.sh @@ -1267,7 +1267,7 @@ if [ true ]; then while true do - if [ ! "$version" = "$SystemVersion" ]; then + if [ ! "$version" = "$SystemVersion" ] && [ ! "$version" = "" ]; then echo "Version detected!. we are gonna use $SystemVersion" ipswLLB=$(curl -sL "https://api.ipsw.me/v4/device/$deviceid?type=ipsw" | "$dir"/jq '.firmwares | .[] | select(.version=="'$SystemVersion'")' | "$dir"/jq -s '.[0] | .url' --raw-output) else @@ -1295,7 +1295,7 @@ if [ true ]; then cp -f work/$(awk "/""${model}""/{x=1}x&&/LLB[.]/{print;exit}" work/BuildManifest.plist | grep '' |cut -d\> -f2 |cut -d\< -f1 | sed 's/Firmware[/]all_flash[/]//') "$extractedIpsw/Firmware/all_flash/$(awk "/""${model}""/{x=1}x&&/LLB[.]/{print;exit}" work/BuildManifest.plist | grep '' |cut -d\> -f2 |cut -d\< -f1 | sed 's/Firmware[/]all_flash[/]//')" cd $extractedIpsw zip --update "$mainDir/$ipsw" Firmware/all_flash/"$(awk "/""${model}""/{x=1}x&&/LLB[.]/{print;exit}" BuildManifest.plist | grep '' |cut -d\> -f2 |cut -d\< -f1 | sed 's/Firmware[/]all_flash[/]//')" Firmware/all_flash//$(awk "/""${model}""/{x=1}x&&/LLB[.]/{print;exit}" BuildManifest.plist | grep '' |cut -d\> -f2 |cut -d\< -f1 | sed 's/Firmware[/]all_flash[/]//') - cd "$mainDir" + cd $mainDir echo "[*] Replaced LLB suscessfully" touch "boot/${deviceid}/.llbreplaced"