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-deploy-u0.sh

61 lines
2.5 KiB
Bash
Raw Normal View History

2020-06-13 16:52:54 +02:00
#!/bin/bash
if [ $(uname) = "Darwin" ]; then
if [ $(uname -p) = "arm" ] || [ $(uname -p) = "arm64" ]; then
echo "It's recommended this script be ran on macOS/Linux with a clean iOS device running checkra1n attached unless migrating from older bootstrap."
read -p "Press enter to continue"
ARM=yes
fi
fi
echo "odysseyra1n deployment script"
echo "(C) 2020, CoolStar. All Rights Reserved"
2020-07-15 23:41:29 +02:00
echo "Unc0ver Version"
2020-06-13 16:52:54 +02:00
echo ""
echo "Before you begin: This script includes experimental migration from older bootstraps to Procursus/Odyssey."
echo "If you're already jailbroken, you can run this script on the checkra1n device."
echo "If you'd rather start clean, please Reset System via the Loader app first."
read -p "Press enter to continue"
2020-07-15 23:33:21 +02:00
2020-06-13 16:52:54 +02:00
echo "Downloading Resources..."
2020-07-15 23:47:14 +02:00
wget https://github.com/coolstar/odyssey-bootstrap/raw/master/bootstrap_1600-ssh.tar.gz --directory-prefix=/var/root --no-check-certificate
wget https://github.com/coolstar/odyssey-bootstrap/raw/master/org.coolstar.sileo_1.8.1_iphoneos-arm.deb --directory-prefix=/var/root --no-check-certificate
2020-07-15 22:57:58 +02:00
2020-07-15 23:33:21 +02:00
cd /var/root
2020-07-15 23:25:07 +02:00
gzip -d bootstrap_1600-ssh.tar.gz
2020-07-15 22:57:58 +02:00
mount -uw -o union /dev/disk0s1s1
rm -rf /etc/profile
rm -rf /etc/profile.d
rm -rf /etc/alternatives
rm -rf /etc/apt
rm -rf /etc/ssl
rm -rf /etc/ssh
rm -rf /etc/dpkg
rm -rf /Library/dpkg
rm -rf /var/cache
rm -rf /var/lib
tar --preserve-permissions -xkf bootstrap_${CFVER}-ssh.tar -C /
/Library/dpkg/info/openssh.postinst || true
launchctl load -w /Library/LaunchDaemons/com.openssh.sshd.plist || true
/usr/libexec/firmware
mkdir -p /etc/apt/sources.list.d/
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
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games dpkg -i org.coolstar.sileo_1.8.1_iphoneos-arm.deb
uicache -p /Applications/Sileo.app
echo -n "" > /var/lib/dpkg/available
/Library/dpkg/info/profile.d.postinst
touch /.mount_rw
touch /.installed_odyssey
rm bootstrap*.tar*
rm org.coolstar.sileo_1.8.1_iphoneos-arm.deb
rm odyssey-device-deploy.sh