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/procursus-migration.sh

60 lines
3.0 KiB
Bash
Raw Normal View History

2020-07-30 01:28:51 +02:00
#!/bin/bash
if [ "$EUID" -ne 0 ]; then
echo You need to run this script as root.
else
clear
2020-08-04 01:31:44 +02:00
echo "Copyright (c) 2020, Yaya4 All rights reserved."
2020-08-06 00:12:55 +02:00
echo -e "\e[31mUncursus 2.0 Migration Part By Yaya4_4 1.0.2 (Sbtale)\e[0m"
2020-07-30 01:28:51 +02:00
echo "Checking iOS Version"
VER=$(/usr/bin/plutil -key ProductVersion /System/Library/CoreServices/SystemVersion.plist)
if [[ "${VER%.*}" -ge 12 ]] && [[ "${VER%.*}" -lt 13 ]]; then
2020-08-02 07:33:49 +02:00
echo "iOS 12 detected, setting the CFVER to 1500"
2020-07-30 19:31:05 +02:00
CFVER=1500
2020-07-30 01:28:51 +02:00
elif [[ "${VER%.*}" -ge 13 ]]; then
2020-08-02 07:33:49 +02:00
echo "iOS 13 detected, setting the CFVER to 1600"
2020-07-30 01:28:51 +02:00
CFVER=1600
else
2020-07-30 19:31:05 +02:00
if [[ "${VER%.*.*}" -ge 13 ]]; then
2020-08-02 07:33:49 +02:00
echo "iOS 13 detected, setting the CFVER to 1600"
2020-07-30 19:31:05 +02:00
CFVER=1600
else
if [[ "${VER%.*.*}" -ge 12 ]]; then
2020-08-02 07:33:49 +02:00
echo "iOS 12 detected, setting the CFVER to 1500"
2020-07-30 01:28:51 +02:00
CFVER=1500
2020-08-06 00:13:05 +02:00
else
2020-08-06 00:17:21 +02:00
echo "Your iOS Version Is Under iOS 12 Or Either Than 13"
2020-08-06 00:13:05 +02:00
exit 1
2020-07-30 01:28:51 +02:00
fi
2020-07-30 19:31:05 +02:00
fi
fi
2020-07-30 16:07:28 +02:00
echo -e "\e[32mStarting Migration....\e[0m"
2020-07-30 01:28:51 +02:00
apt update
apt install wget -y --allow-unauthenticated
rm /etc/apt/sources.list.d/cydia.list
echo "deb https://apt.procurs.us/ iphoneos-arm64/${CFVER} main" >> /etc/apt/sources.list.d/cydia.list
2020-07-30 02:45:07 +02:00
rm -rf /var/root/migration
2020-07-30 01:28:51 +02:00
mkdir /var/root/migration
2020-07-30 23:44:29 +02:00
wget -q http://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/procursus-keyring_2020.05.09_iphoneos-arm.deb --no-check-certificate --directory-prefix=/var/root/migration
2020-07-30 03:41:36 +02:00
wget -q https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/coreutils_8.32-1_iphoneos-arm.deb --no-check-certificate --directory-prefix=/var/root/migration
2020-07-30 19:43:11 +02:00
wget -q https://apt.procurs.us/pool/main/iphoneos-arm64/${CFVER}/firmware-sbin_0-1_iphoneos-arm.deb --no-check-certificate --directory-prefix=/var/root/migration
2020-07-30 03:41:36 +02:00
wget -q http://yaya48.gq/files/migration-files/elucubratustoprocursus/libncurses.6.dylib --no-check-certificate --directory-prefix=/var/root/migration
2020-07-30 01:28:51 +02:00
dpkg -i /var/root/migration/procursus-keyring_2020.05.09_iphoneos-arm.deb
apt update
apt install xz-utils -y --allow-unauthenticated -u -o APT::Force-LoopBreak=1
2020-07-30 03:41:36 +02:00
wget -q https://yaya48.gq/files/migration-files/shared/${CFVER}/liblzma.dylib --no-check-certificate --directory-prefix=/usr/local/lib
wget -q https://yaya48.gq/files/migration-files/shared/${CFVER}/liblzma.5.dylib --no-check-certificate --directory-prefix=/usr/local/lib
2020-07-30 01:28:51 +02:00
apt install xz-utils -y --allow-unauthenticated -u -o APT::Force-LoopBreak=1
apt full-upgrade -y --allow-unauthenticated -u -o APT::Force-LoopBreak=1
cp /var/root/migration/libncurses.6.dylib /usr/lib
2020-07-30 19:43:11 +02:00
dpkg -i --force-all /var/root/migration/firmware-sbin_0-1_iphoneos-arm.deb
2020-07-30 01:28:51 +02:00
apt full-upgrade -y --allow-unauthenticated -u -o APT::Force-LoopBreak=1
dpkg -i --force-all /var/root/migration/coreutils_8.32-1_iphoneos-arm.deb
dpkg -r apt1.4
echo "Types: deb" > /etc/apt/sources.list.d/procursus.sources
echo "URIs: https://apt.procurs.us/" >> /etc/apt/sources.list.d/procursus.sources
echo "Suites: iphoneos-arm64/${CFVER}" >> /etc/apt/sources.list.d/procursus.sources
echo "Components: main" >> /etc/apt/sources.list.d/procursus.sources
2020-07-30 16:07:28 +02:00
echo -e "\e[32mMigration Finished!\e[0m"
2020-08-02 07:33:49 +02:00
echo -e "\e[32mBack to Uncursus Script...\e[0m"
2020-07-30 01:36:55 +02:00
fi