Some changes

- For igetnonce error in macOS
- Allow other Focal-based distros to go to dependency install
This commit is contained in:
LukeeGD 2020-07-26 14:08:00 +08:00
parent 9ec3e3937a
commit 651d30529c

View File

@ -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