Procursus 2 support #17
@@ -1,80 +1,80 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
if [ "$EUID" -ne 0 ]; then
 | 
					if [ "$EUID" -ne 0 ]; then
 | 
				
			||||||
echo You need to run this script as root.
 | 
					  echo You need to run this script as root.
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
need=""
 | 
					  need=""
 | 
				
			||||||
command -v plutil >/dev/null 2>&1 || need+="com.bingner.plutil "
 | 
					  command -v plutil >/dev/null 2>&1 || need+="com.bingner.plutil "
 | 
				
			||||||
command -v curl >/dev/null 2>&1 || need+="curl "
 | 
					  command -v curl >/dev/null 2>&1 || need+="curl "
 | 
				
			||||||
command -v wget >/dev/null 2>&1 || need+="wget "
 | 
					  command -v wget >/dev/null 2>&1 || need+="wget "
 | 
				
			||||||
clear
 | 
					  clear
 | 
				
			||||||
echo "Copyright (c) 2020, Yaya4 All rights reserved."
 | 
					  echo "Copyright (c) 2020, Yaya4 All rights reserved."
 | 
				
			||||||
echo -e "\e[31mWelcome to Uncursus Installation Script V2.0.8-4 (Stable) By @Yaya4_4 on Twitter.\e[0m"
 | 
					  echo -e "\e[31mWelcome to Uncursus Installation Script V2.0.8-4 (Stable) By @Yaya4_4 on Twitter.\e[0m"
 | 
				
			||||||
echo "Checking if this script is running on ARM Darwin"
 | 
					  echo "Checking if this script is running on ARM Darwin"
 | 
				
			||||||
if [ $(uname) = "Linux" ]; then
 | 
					  if [ $(uname) = "Linux" ]; then
 | 
				
			||||||
    if [ $(uname -p) = "x86_64" ]; then
 | 
					    if [ $(uname -p) = "x86_64" ]; then
 | 
				
			||||||
      PC=yes
 | 
					      PC=yes
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
fi
 | 
					  fi
 | 
				
			||||||
if [[ "${PC}" = yes ]]; then
 | 
					  if [[ "${PC}" = yes ]]; then
 | 
				
			||||||
echo "Use this script with SSH over an IP session on your iDevice. Thanks."
 | 
					    echo "Use this script with SSH over an IP session on your iDevice. Thanks."
 | 
				
			||||||
exit  1
 | 
					    exit  1
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
    echo "ARM Darwin detected, running..."
 | 
					    echo "ARM Darwin detected, running..."
 | 
				
			||||||
echo "Checking if you're using unc0ver..."
 | 
					    echo "Checking if you're using unc0ver..."
 | 
				
			||||||
if [[ -f "/.installed_unc0ver" ]]; then
 | 
					    if [[ -f "/.installed_unc0ver" ]]; then
 | 
				
			||||||
      u0=yes
 | 
					      u0=yes
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
      u0=no
 | 
					      u0=no
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
if [[ "${u0}" = no ]]; then
 | 
					    if [[ "${u0}" = no ]]; then
 | 
				
			||||||
echo "Use unc0ver, thanks"
 | 
					      echo "Use unc0ver, thanks"
 | 
				
			||||||
exit  1
 | 
					      exit  1
 | 
				
			||||||
else 
 | 
					    else
 | 
				
			||||||
echo "unc0ver detected"
 | 
					      echo "unc0ver detected"
 | 
				
			||||||
echo "WARNING: I'M NOT RESPONSIBLE IF ANYTHING GOES WRONG"
 | 
					      echo "WARNING: I'M NOT RESPONSIBLE IF ANYTHING GOES WRONG"
 | 
				
			||||||
echo "If you've found any bugs, please create an issue in GitHub."
 | 
					      echo "If you've found any bugs, please create an issue in GitHub."
 | 
				
			||||||
echo "Checking Dependencies..."
 | 
					      echo "Checking Dependencies..."
 | 
				
			||||||
if [[ $need != "" ]]; then
 | 
					      if [[ $need != "" ]]; then
 | 
				
			||||||
echo "Installing Dependencies..."
 | 
					        echo "Installing Dependencies..."
 | 
				
			||||||
apt update
 | 
					        apt update
 | 
				
			||||||
apt install $need -y
 | 
					        apt install $need -y
 | 
				
			||||||
fi
 | 
					      fi
 | 
				
			||||||
echo "Pulling and executing the Procursus Migration Script..."
 | 
					      echo "Pulling and executing the Procursus Migration Script..."
 | 
				
			||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Yaya48/Uncursus/new/procursus-migration.sh)"
 | 
					      /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Yaya48/Uncursus/new/procursus-migration.sh)"
 | 
				
			||||||
echo "Creating a custom directory for the required files. Path (/tmp/uncursus)."
 | 
					      echo "Creating a custom directory for the required files. Path (/tmp/uncursus)."
 | 
				
			||||||
rm -rf /tmp/uncursus
 | 
					      rm -rf /tmp/uncursus
 | 
				
			||||||
mkdir /tmp/uncursus
 | 
					      mkdir /tmp/uncursus
 | 
				
			||||||
mkdir /tmp/uncursus/u0
 | 
					      mkdir /tmp/uncursus/u0
 | 
				
			||||||
echo "Done. Setuping Uncursus Repo...."
 | 
					      echo "Done. Setuping Uncursus Repo...."
 | 
				
			||||||
echo "Types: deb" > /etc/apt/sources.list.d/uncursus.sources
 | 
					      echo "Types: deb" > /etc/apt/sources.list.d/uncursus.sources
 | 
				
			||||||
echo "URIs: https://uncursus.yaya48.gq" >> /etc/apt/sources.list.d/uncursus.sources
 | 
					      echo "URIs: https://uncursus.yaya48.gq" >> /etc/apt/sources.list.d/uncursus.sources
 | 
				
			||||||
echo "Suites: iphoneos-arm64/uncursus" >> /etc/apt/sources.list.d/uncursus.sources
 | 
					      echo "Suites: iphoneos-arm64/uncursus" >> /etc/apt/sources.list.d/uncursus.sources
 | 
				
			||||||
echo "Components: main" >> /etc/apt/sources.list.d/uncursus.sources
 | 
					      echo "Components: main" >> /etc/apt/sources.list.d/uncursus.sources
 | 
				
			||||||
echo "" >> /etc/apt/sources.list.d/uncursus.sources
 | 
					      echo "" >> /etc/apt/sources.list.d/uncursus.sources
 | 
				
			||||||
mkdir -p /etc/apt/preferences.d/
 | 
					      mkdir -p /etc/apt/preferences.d/
 | 
				
			||||||
echo "Package: *" > /etc/apt/preferences.d/uncursus
 | 
					      echo "Package: *" > /etc/apt/preferences.d/uncursus
 | 
				
			||||||
echo "Pin: release l=Uncursus" >> /etc/apt/preferences.d/uncursus
 | 
					      echo "Pin: release l=Uncursus" >> /etc/apt/preferences.d/uncursus
 | 
				
			||||||
echo "Pin-Priority: 1001" >> /etc/apt/preferences.d/uncursus
 | 
					      echo "Pin-Priority: 1001" >> /etc/apt/preferences.d/uncursus
 | 
				
			||||||
echo "" >> /etc/apt/preferences.d/uncursus
 | 
					      echo "" >> /etc/apt/preferences.d/uncursus
 | 
				
			||||||
wget -q https://github.com/Yaya48/uncursusrepov2/raw/master/pool/main/iphoneos-arm64/Yaya4Keyring.deb --directory-prefix=/tmp/uncursus/
 | 
					      wget -q https://github.com/Yaya48/uncursusrepov2/raw/master/pool/main/iphoneos-arm64/Yaya4Keyring.deb --directory-prefix=/tmp/uncursus/
 | 
				
			||||||
dpkg -i /tmp/uncursus/Yaya4Keyring.deb
 | 
					      dpkg -i /tmp/uncursus/Yaya4Keyring.deb
 | 
				
			||||||
apt update
 | 
					      apt update
 | 
				
			||||||
echo "Done. Installing Procursus Cydia..."
 | 
					      echo "Done. Installing Procursus Cydia..."
 | 
				
			||||||
apt purge cydia -y --allow-remove-essential
 | 
					      apt purge cydia -y --allow-remove-essential
 | 
				
			||||||
apt install cydia -y essential -y
 | 
					      apt install cydia -y essential -y
 | 
				
			||||||
echo "Done. Installing necessities..."
 | 
					      echo "Done. Installing necessities..."
 | 
				
			||||||
apt update
 | 
					      apt update
 | 
				
			||||||
apt install essential-dummy -y lzma -y ncurses -y
 | 
					      apt install essential-dummy -y lzma -y ncurses -y
 | 
				
			||||||
echo "Done. Running Firmware Configuration (./firmware.sh)"
 | 
					      echo "Done. Running Firmware Configuration (./firmware.sh)"
 | 
				
			||||||
/usr/libexec/firmware
 | 
					      /usr/libexec/firmware
 | 
				
			||||||
echo "Bootstrap installation complete. Cleaning up..."
 | 
					      echo "Bootstrap installation complete. Cleaning up..."
 | 
				
			||||||
rm -rf /tmp/uncursus/
 | 
					      rm -rf /tmp/uncursus/
 | 
				
			||||||
rm -rf /tmp/procursus-migration/
 | 
					      rm -rf /tmp/procursus-migration/
 | 
				
			||||||
echo "All Done."
 | 
					      echo "All Done."
 | 
				
			||||||
touch /.installed_odyssey
 | 
					      touch /.installed_odyssey
 | 
				
			||||||
touch /.procursus_strapped
 | 
					      touch /.procursus_strapped
 | 
				
			||||||
uicache -p /Applications/Cydia.app
 | 
					      uicache -p /Applications/Cydia.app
 | 
				
			||||||
sbreload
 | 
					      sbreload
 | 
				
			||||||
fi
 | 
					    fi
 | 
				
			||||||
fi
 | 
					  fi
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
		Reference in New Issue
	
	Block a user