mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-23 16:39:17 +01:00
Update restore.sh
This commit is contained in:
parent
594f4d54e7
commit
800ab17d55
12
restore.sh
12
restore.sh
@ -313,7 +313,7 @@ function CheckM8 {
|
|||||||
Mode='Downgrade'
|
Mode='Downgrade'
|
||||||
SelectVersion
|
SelectVersion
|
||||||
else
|
else
|
||||||
Error "Entering pwnDFU failed. Please run the script again"
|
Error "Entering pwnDFU failed. Please run the script again" '$ ./restore.sh Downgrade'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -508,11 +508,6 @@ function InstallDependencies {
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
function Verify {
|
|
||||||
Log "Verifying $1..."
|
|
||||||
[[ $(sha1sum $1 | awk '{print $1}') != $2 ]] && Error "Verifying $1 failed. Please run the script again"
|
|
||||||
}
|
|
||||||
|
|
||||||
function Compile {
|
function Compile {
|
||||||
git clone --depth 1 https://github.com/$1/$2.git
|
git clone --depth 1 https://github.com/$1/$2.git
|
||||||
cd $2
|
cd $2
|
||||||
@ -539,6 +534,11 @@ function SaveExternal {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Verify {
|
||||||
|
Log "Verifying $1..."
|
||||||
|
[[ $(sha1sum $1 | awk '{print $1}') != $2 ]] && Error "Verifying $1 failed. Please run the script again" '$ ./restore.sh InstallDependencies'
|
||||||
|
}
|
||||||
|
|
||||||
function BasebandDetect {
|
function BasebandDetect {
|
||||||
Firmware=resources/firmware/$ProductType
|
Firmware=resources/firmware/$ProductType
|
||||||
BasebandURL=$(cat $Firmware/13G37/url 2>/dev/null) # iOS 9.3.6
|
BasebandURL=$(cat $Firmware/13G37/url 2>/dev/null) # iOS 9.3.6
|
||||||
|
Loading…
Reference in New Issue
Block a user