From 2422c005f8a354a2d824f73827fa5ad7c8656350 Mon Sep 17 00:00:00 2001 From: LukeeGD Date: Mon, 19 Oct 2020 12:17:49 +0800 Subject: [PATCH] Untested 16.04 support not recommended to run on 16.04! use 18.04 and newer --- README.md | 4 +--- restore.sh | 12 +++++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a37824f..08dfe2e 100755 --- a/README.md +++ b/README.md @@ -52,9 +52,7 @@ 6. Follow instructions ## Supported OS versions/distros: -- [Ubuntu 18.04](http://releases.ubuntu.com/bionic/) and Bionic-based distros -- [Ubuntu 20.04](http://releases.ubuntu.com/focal/) and Focal-based distros like [Linux Mint 20](https://www.linuxmint.com/) -- Ubuntu 20.10 +- Ubuntu [16.04](http://releases.ubuntu.com/xenial/), [18.04](http://releases.ubuntu.com/bionic/), [20.04](http://releases.ubuntu.com/focal/), and [20.10](https://releases.ubuntu.com/groovy/) and Ubuntu-based distros like [Linux Mint](https://www.linuxmint.com/) - [Arch Linux](https://www.archlinux.org/) and Arch-based distros like [Manjaro](https://manjaro.org/) - [Fedora 32 to 33](https://getfedora.org/) - macOS 10.13 to 10.15 diff --git a/restore.sh b/restore.sh index a268981..5baa6bb 100755 --- a/restore.sh +++ b/restore.sh @@ -56,6 +56,11 @@ function Main { if [[ $UBUNTU_CODENAME == "bionic" ]]; then futurerestore2="${futurerestore2}_bionic" idevicerestore="${idevicerestore}_bionic" + elif [[ $UBUNTU_CODENAME == "xenial" ]]; then + futurerestore2="${futurerestore2}_xenial" + idevicerestore="${idevicerestore}_xenial" + partialzip="${partialzip}_xenial" + tsschecker="${tsschecker}_xenial" fi elif [[ $OSTYPE == "darwin"* ]]; then @@ -567,7 +572,8 @@ function InstallDependencies { ln -sf /usr/lib/libcurl.so.3 ../resources/lib/libcurl.so.3 ln -sf /usr/lib/libzip.so.5 ../resources/lib/libzip.so.4 - elif [[ $UBUNTU_CODENAME == "bionic" ]] || [[ $UBUNTU_CODENAME == "focal" ]] || [[ $UBUNTU_CODENAME == "groovy" ]]; then + elif [[ $UBUNTU_CODENAME == "xenial" ]] || [[ $UBUNTU_CODENAME == "bionic" ]] || + [[ $UBUNTU_CODENAME == "focal" ]] || [[ $UBUNTU_CODENAME == "groovy" ]]; then # Ubuntu sudo add-apt-repository universe sudo apt update @@ -580,6 +586,10 @@ function InstallDependencies { sudo dpkg -i libpng12_bionic.deb libzip5.deb SaveFile https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/tools_linux_bionic.zip tools_linux_bionic.zip 959abbafacfdaddf87dd07683127da1dab6c835f unzip tools_linux_bionic.zip -d ../resources/tools + elif [[ $UBUNTU_CODENAME == "xenial" ]]; then + sudo apt install -y libzip4 python libpng12 + SaveFile https://github.com/LukeZGD/iOS-OTA-Downgrader-Keys/releases/download/tools/tools_linux_xenial.zip tools_linux_xenial.zip b74861fd87511a92e36e27bf2ec3e1e83b6e8200 + unzip tools_linux_xenial.zip -d ../resources/tools else sudo apt install -y libzip5 python2 sudo dpkg -i libpng12.deb libssl1.0.0.deb libzip4.deb