mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-25 15:51:50 +01:00
ProductType fallback
This commit is contained in:
parent
96954b416d
commit
c1dd8815bf
@ -277,7 +277,7 @@ function MainMenu {
|
|||||||
rm -rf iP*/ tmp/ $(ls *.shsh2 2>/dev/null)
|
rm -rf iP*/ tmp/ $(ls *.shsh2 2>/dev/null)
|
||||||
mkdir tmp
|
mkdir tmp
|
||||||
|
|
||||||
if [ ! $HardwareModel ]
|
if [ ! $ProductType ]
|
||||||
then
|
then
|
||||||
echo "Please plug the device in and trust this computer before proceeding"
|
echo "Please plug the device in and trust this computer before proceeding"
|
||||||
exit
|
exit
|
||||||
@ -394,6 +394,7 @@ fi
|
|||||||
HardwareModel=$(ideviceinfo -s | grep 'HardwareModel' | cut -c 16-)
|
HardwareModel=$(ideviceinfo -s | grep 'HardwareModel' | cut -c 16-)
|
||||||
HardwareModelLower=$(echo $HardwareModel | tr '[:upper:]' '[:lower:]' | sed 's/.\{2\}$//')
|
HardwareModelLower=$(echo $HardwareModel | tr '[:upper:]' '[:lower:]' | sed 's/.\{2\}$//')
|
||||||
ProductType=$(ideviceinfo -s | grep 'ProductType' | cut -c 14-)
|
ProductType=$(ideviceinfo -s | grep 'ProductType' | cut -c 14-)
|
||||||
|
[ ! $ProductType ] && ProductType=$(ideviceinfo | grep 'ProductType' | cut -c 14-)
|
||||||
ProductVersion=$(ideviceinfo -s | grep 'ProductVersion' | cut -c 17-)
|
ProductVersion=$(ideviceinfo -s | grep 'ProductVersion' | cut -c 17-)
|
||||||
VersionDetect=$(echo $ProductVersion | cut -c 1)
|
VersionDetect=$(echo $ProductVersion | cut -c 1)
|
||||||
UniqueChipID=$(ideviceinfo -s | grep 'UniqueChipID' | cut -c 15-)
|
UniqueChipID=$(ideviceinfo -s | grep 'UniqueChipID' | cut -c 15-)
|
||||||
|
Loading…
Reference in New Issue
Block a user