mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-24 00:49:17 +01:00
Some changes
- For igetnonce error in macOS - Allow other Focal-based distros to go to dependency install
This commit is contained in:
parent
9ec3e3937a
commit
651d30529c
@ -42,7 +42,7 @@ function Main {
|
|||||||
[ ! $(which lsusb) ] || [ ! $(which ssh) ] || [ ! $(which python3) ]; then
|
[ ! $(which lsusb) ] || [ ! $(which ssh) ] || [ ! $(which python3) ]; then
|
||||||
InstallDependencies
|
InstallDependencies
|
||||||
elif [ $DFUDevice == 1 ] || [ $RecoveryDevice == 1 ]; then
|
elif [ $DFUDevice == 1 ] || [ $RecoveryDevice == 1 ]; then
|
||||||
ProductType=$(sudo LD_LIBRARY_PATH=/usr/local/lib resources/tools/igetnonce_$platform)
|
ProductType=$(sudo LD_LIBRARY_PATH=/usr/local/lib resources/tools/igetnonce_$platform 2>/dev/null)
|
||||||
[ ! $ProductType ] && read -p "[Input] Enter ProductType (eg. iPad2,1): " ProductType
|
[ ! $ProductType ] && read -p "[Input] Enter ProductType (eg. iPad2,1): " ProductType
|
||||||
UniqueChipID=$(sudo LD_LIBRARY_PATH=/usr/local/lib irecovery -q | grep 'ECID' | cut -c 7-)
|
UniqueChipID=$(sudo LD_LIBRARY_PATH=/usr/local/lib irecovery -q | grep 'ECID' | cut -c 7-)
|
||||||
ProductVer='Unknown'
|
ProductVer='Unknown'
|
||||||
@ -451,7 +451,7 @@ function InstallDependencies {
|
|||||||
Compile libimobiledevice ifuse
|
Compile libimobiledevice ifuse
|
||||||
sudo ln -sf /usr/lib/libzip.so.5 /usr/lib/libzip.so.4
|
sudo ln -sf /usr/lib/libzip.so.5 /usr/lib/libzip.so.4
|
||||||
|
|
||||||
elif [[ $VERSION_ID == "20.04" ]]; then
|
elif [[ $UBUNTU_CODENAME == "focal" ]]; then
|
||||||
# Ubuntu Focal
|
# Ubuntu Focal
|
||||||
sudo add-apt-repository universe
|
sudo add-apt-repository universe
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
Loading…
Reference in New Issue
Block a user