mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-30 11:54:18 +01:00
Add Fedora support
This commit is contained in:
parent
19c73691e5
commit
13c934d8b3
@ -36,10 +36,11 @@
|
|||||||
- This script can also work on virtual machines, but I won't provide support for them
|
- This script can also work on virtual machines, but I won't provide support for them
|
||||||
|
|
||||||
## OS versions/distros tested on:
|
## OS versions/distros tested on:
|
||||||
- [Lubuntu 18.04](http://cdimage.ubuntu.com/lubuntu/releases/18.04/release/) live USB
|
- [Ubuntu 18.04](http://cdimage.ubuntu.com/ubuntu/releases/18.04/release/)
|
||||||
- [Xubuntu 20.04](http://cdimage.ubuntu.com/xubuntu/releases/20.04/release/) live USB
|
- [Ubuntu 20.04](http://cdimage.ubuntu.com/ubuntu/releases/20.04/release/)
|
||||||
- [Arch Linux](https://www.archlinux.org/) full install
|
- [Arch Linux](https://www.archlinux.org/)
|
||||||
- [Manjaro](https://manjaro.org/) live USB and full install
|
- [Manjaro](https://manjaro.org/)
|
||||||
|
- [Fedora 32](https://getfedora.org/)
|
||||||
- macOS 10.13.6 High Sierra, 10.14.6 Mojave, 10.15.5 Catalina
|
- macOS 10.13.6 High Sierra, 10.14.6 Mojave, 10.15.5 Catalina
|
||||||
|
|
||||||
## Tools and other stuff used by this script:
|
## Tools and other stuff used by this script:
|
||||||
|
14
restore.sh
14
restore.sh
@ -277,25 +277,25 @@ function Downgrade {
|
|||||||
function InstallDependencies {
|
function InstallDependencies {
|
||||||
echo "Install Dependencies"
|
echo "Install Dependencies"
|
||||||
. /etc/os-release 2>/dev/null
|
. /etc/os-release 2>/dev/null
|
||||||
|
mkdir tmp
|
||||||
|
|
||||||
if [[ $(which pacman) ]]; then
|
if [[ $(which pacman) ]]; then
|
||||||
# Arch Linux
|
# Arch Linux
|
||||||
Log "Installing dependencies for Arch with pacman..."
|
Log "Installing dependencies for Arch with pacman..."
|
||||||
sudo pacman -Sy --noconfirm --needed bsdiff curl libcurl-compat libpng12 libzip openssh openssl-1.0 python unzip usbutils
|
sudo pacman -Sy --noconfirm --needed bsdiff curl libcurl-compat libpng12 libzip openssh openssl-1.0 python unzip usbutils
|
||||||
sudo pacman -S --noconfirm libimobiledevice usbmuxd
|
sudo pacman -S --noconfirm libimobiledevice usbmuxd
|
||||||
|
cd tmp
|
||||||
git clone https://aur.archlinux.org/ifuse.git
|
git clone https://aur.archlinux.org/ifuse.git
|
||||||
cd ifuse
|
cd ifuse
|
||||||
makepkg -sic --noconfirm
|
makepkg -sic --noconfirm
|
||||||
cd ..
|
|
||||||
rm -rf 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 == "18.04" ]] || [[ $VERSION_ID == "20.04" ]]; then
|
elif [[ $VERSION_ID == "18.04" ]] || [[ $VERSION_ID == "20.04" ]]; then
|
||||||
# Ubuntu Bionic, Focal
|
# Ubuntu Bionic, Focal
|
||||||
Log "Running APT update..."
|
Log "Running APT update..."
|
||||||
sudo apt update
|
sudo apt update
|
||||||
Log "Installing dependencies for Ubuntu $VERSION_ID with APT..."
|
Log "Installing dependencies for Ubuntu $VERSION_ID with APT..."
|
||||||
sudo apt -y install binutils bsdiff curl ifuse libimobiledevice-utils python3 usbmuxd
|
sudo apt -y install binutils bsdiff curl ifuse libimobiledevice-utils python3 usbmuxd
|
||||||
mkdir tmp
|
|
||||||
cd tmp
|
cd tmp
|
||||||
curl -L http://archive.ubuntu.com/ubuntu/pool/universe/c/curl3/libcurl3_7.58.0-2ubuntu2_amd64.deb -o libcurl3.deb
|
curl -L http://archive.ubuntu.com/ubuntu/pool/universe/c/curl3/libcurl3_7.58.0-2ubuntu2_amd64.deb -o libcurl3.deb
|
||||||
ar x libcurl3.deb data.tar.xz
|
ar x libcurl3.deb data.tar.xz
|
||||||
@ -314,6 +314,14 @@ function InstallDependencies {
|
|||||||
curl -L $URLlibpng12 -o libpng12.deb
|
curl -L $URLlibpng12 -o libpng12.deb
|
||||||
sudo dpkg -i libpng12.deb
|
sudo dpkg -i libpng12.deb
|
||||||
|
|
||||||
|
elif [[ $(which dnf) ]]; then
|
||||||
|
sudo dnf install -y bsdiff ifuse libimobiledevice-utils libpng12 libzip
|
||||||
|
cd tmp
|
||||||
|
curl -L http://ftp.pbone.net/mirror/ftp.scientificlinux.org/linux/scientific/6.1/x86_64/os/Packages/openssl-1.0.0-10.el6.x86_64.rpm -o openssl-1.0.0.rpm
|
||||||
|
rpm2cpio openssl-1.0.0.rpm | cpio -idmv
|
||||||
|
sudo cp usr/lib64/libcrypto.so.1.0.0 usr/lib64/libssl.so.1.0.0 /usr/lib64
|
||||||
|
sudo ln -sf libzip.so.5 libzip.so.4
|
||||||
|
|
||||||
elif [[ $OSTYPE == "darwin"* ]]; then
|
elif [[ $OSTYPE == "darwin"* ]]; then
|
||||||
# macOS
|
# macOS
|
||||||
if [[ ! $(which brew) ]]; then
|
if [[ ! $(which brew) ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user