This repository has been archived on 2023-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Uncursus/installuncursus.sh

86 lines
3.5 KiB
Bash
Raw Normal View History

#!/bin/bash
if [ "$EUID" -ne 0 ]; then
echo You need to run this script as root.
else
2020-07-30 21:26:19 +02:00
need=""
command -v unzip >/dev/null 2>&1 || need+="unzip "
command -v plutil >/dev/null 2>&1 || need+="com.bingner.plutil "
command -v curl >/dev/null 2>&1 || need+="curl "
2020-07-30 21:27:35 +02:00
command -v wget >/dev/null 2>&1 || need+="wget "
clear
2020-08-04 01:57:45 +02:00
echo "Copyright (c) 2020, Yaya4 All rights reserved."
2020-08-04 15:14:55 +02:00
echo -e "\e[31mWelcome to Uncursus Installation Script V2.0.3 (Stable) By @Yaya4_4 on Twitter.\e[0m"
2020-08-02 07:31:09 +02:00
echo "Checking if this script is running on ARM Darwin"
if [ $(uname) = "Linux" ]; then
if [ $(uname -p) = "x86_64" ]; then
PC=yes
fi
2020-07-30 01:52:36 +02:00
fi
if [[ "${PC}" = yes ]]; then
2020-08-02 07:31:09 +02:00
echo "Use this script with SSH over an IP session on your iDevice. Thanks."
2020-08-02 05:10:53 +02:00
exit 1
else
2020-08-02 07:31:09 +02:00
echo "ARM Darwin detected, running..."
echo "Checking if you're using a clean install of unc0ver..."
if [[ -f "/.installed_unc0ver" ]]; then
u0=yes
else
u0=no
fi
if [[ "${u0}" = no ]]; then
2020-08-02 07:31:09 +02:00
echo "Use unc0ver, thanks"
2020-08-02 05:10:53 +02:00
exit 1
else
2020-08-02 07:31:09 +02:00
echo "unc0ver detected"
echo "WARNING: I'M NOT RESPONSIBLE IF ANYTHING GOES WRONG"
echo "If you've found any bugs, please create an issue in GitHub."
2020-07-30 21:34:18 +02:00
echo "Checking Dependencies..."
2020-07-30 21:39:07 +02:00
if [[ $need != "" ]]; then
echo "Installing Dependencies..."
apt update
2020-07-30 20:53:25 +02:00
apt install $need -y
fi
2020-07-30 01:52:36 +02:00
echo "Pulling and executing the Procursus Migration Script"
2020-07-31 05:17:56 +02:00
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Yaya48/Uncursus/new/procursus-migration.sh)"
2020-07-30 21:19:04 +02:00
echo "Creating a custom directory for the required files. Path (/User/Documents/uncursus)."
2020-07-30 01:56:02 +02:00
rm -rf /User/Documents/uncursus
mkdir /User/Documents/uncursus
mkdir /User/Documents/uncursus/u0
echo "Done. Setuping Uncursus Repo...."
2020-07-30 01:52:36 +02:00
echo "Types: deb" > /etc/apt/sources.list.d/odyssey.sources
echo "URIs: https://yaya48.github.io/uncursusrepo" >> /etc/apt/sources.list.d/odyssey.sources
echo "Suites: ./" >> /etc/apt/sources.list.d/odyssey.sources
echo "Components: " >> /etc/apt/sources.list.d/odyssey.sources
echo "" >> /etc/apt/sources.list.d/odyssey.sources
mkdir -p /etc/apt/preferenced.d/
echo "Package: *" > /etc/apt/preferenced.d/odyssey
echo "Pin: release n=uncursus-ios" >> /etc/apt/preferenced.d/odyssey
echo "Pin-Priority: 1001" >> /etc/apt/preferenced.d/odyssey
echo "" >> /etc/apt/preferenced.d/odyssey
echo "Done. Installing Sileo"
2020-08-04 18:52:15 +02:00
wget -q https://github.com/Yaya48/uncursusrepo/raw/master/debs/org.coolstar.sileo_1.8.7_iphoneos-arm.deb --directory-prefix=/User/Documents/uncursus/
dpkg -i /User/Documents/uncursus/org.coolstar.sileo_1.8.7_iphoneos-arm.deb
2020-07-30 01:52:36 +02:00
echo "Done. Downloading necessities"
2020-07-30 15:22:09 +02:00
wget -q https://yaya48.gq/files/uncursus/debpatch.zip --directory-prefix=/User/Documents/uncursus/
2020-07-30 01:52:36 +02:00
unzip /User/Documents/uncursus/debpatch.zip -d /User/Documents/uncursus/debpatch
rm -rf /usr/bin/cynject
2020-07-30 03:47:14 +02:00
wget -q https://apt.bingner.com/debs/1443.00/com.ex.substitute_0.1.14_iphoneos-arm.deb --directory-prefix=/User/Documents/uncursus/u0
wget -q https://apt.bingner.com/debs/1443.00/com.saurik.substrate.safemode_0.9.6003_iphoneos-arm.deb --directory-prefix=/User/Documents/uncursus/u0
echo "Done. Installing necessities..."
2020-07-30 01:52:36 +02:00
dpkg -i --force-all /User/Documents/uncursus/debpatch/*.deb
dpkg -i --force-all /User/Documents/uncursus/u0/*.deb
echo "Done. Running Firmware Configuration (./firmware.sh)"
/usr/libexec/firmware
echo "Bootstrap installation complete. Cleaning up..."
rm -rf /User/Documents/uncursus/
echo "Uninstalling Cydia..."
apt purge cydia -y
2020-07-13 16:12:18 +02:00
uicache -a
echo "All Done."
2020-07-30 22:51:09 +02:00
touch /.installed_odyssey
touch /.procursus_strapped
2020-07-30 21:51:36 +02:00
sbreload
fi
fi
fi