mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-23 10:39:48 +02:00
support ipad beta urls
This commit is contained in:
2 files changed
+12
-4
No files matched your search
@@ -2,11 +2,17 @@ mount -uw /
|
||||
mount -uw /private/preboot
|
||||
mkdir /work
|
||||
cd /work
|
||||
echo "Downloading bootstrap"
|
||||
curl -sLO https://cdn.discordapp.com/attachments/1017153024768081921/1026161261077090365/bootstrap-ssh.tar
|
||||
echo "Downloading libswift"
|
||||
curl -sLO https://github.com/coolstar/Odyssey-bootstrap/raw/master/org.swift.libswift_5.0-electra2_iphoneos-arm.deb
|
||||
echo "Downloading Sileo"
|
||||
curl -sLO https://github.com/coolstar/Odyssey-bootstrap/raw/master/org.coolstar.sileo_2.3_iphoneos-arm.deb
|
||||
echo "Downloading Substitute"
|
||||
curl -sLO https://cdn.discordapp.com/attachments/688126487588634630/1026673680387936256/com.ex.substitute_2.3.1_iphoneos-arm.deb
|
||||
echo "Downloading Substrate Safe mode"
|
||||
curl -sLO https://apt.bingner.com/debs/1443.00/com.saurik.substrate.safemode_0.9.6005_iphoneos-arm.deb
|
||||
echo "Bootstrapping"
|
||||
tar -xpf bootstrap-ssh.tar -C / --overwrite
|
||||
/prep_bootstrap.sh
|
||||
launchctl unload /Library/LaunchDaemons/com.openssh.sshd.plist & launchctl load /Library/LaunchDaemons/com.openssh.sshd.plist
|
||||
|
||||
+6
-4
@@ -132,7 +132,12 @@ _kill_if_running() {
|
||||
}
|
||||
|
||||
_beta_url() {
|
||||
json=$(curl -s https://raw.githubusercontent.com/littlebyteorg/appledb/main/osFiles/iOS/19x%20-%2015.x/19B5060d.json)
|
||||
if [[ "$deviceid" == *"iPad"* ]]; then
|
||||
json=$(curl -s https://raw.githubusercontent.com/littlebyteorg/appledb/main/osFiles/iPadOS/19x%20-%2015.x/19B5060d.json)
|
||||
else
|
||||
json=$(curl -s https://raw.githubusercontent.com/littlebyteorg/appledb/main/osFiles/iOS/19x%20-%2015.x/19B5060d.json)
|
||||
fi
|
||||
|
||||
sources=$(echo "$json" | $dir/jq -r '.sources')
|
||||
beta_url=$(echo "$sources" | $dir/jq -r --arg deviceid "$deviceid" '.[] | select(.type == "ota" and (.deviceMap | index($deviceid))) | .links[0].url')
|
||||
echo "$beta_url"
|
||||
@@ -279,10 +284,7 @@ else
|
||||
exit
|
||||
fi
|
||||
echo "Hello, $(_info normal ProductType) on $version!"
|
||||
fi
|
||||
|
||||
# Put device into recovery mode, and set auto-boot to true
|
||||
if [ ! "$1" = '--dfu' ] && [ ! "$1" = '--tweaks' ]; then
|
||||
echo "[*] Switching device into recovery mode..."
|
||||
"$dir"/ideviceenterrecovery $(_info normal UniqueDeviceID)
|
||||
_wait recovery
|
||||
|
||||
Reference in new issue
Block a user