mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-30 05:12:53 +01: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
|
mount -uw /private/preboot
|
||||||
mkdir /work
|
mkdir /work
|
||||||
cd /work
|
cd /work
|
||||||
|
echo "Downloading bootstrap"
|
||||||
curl -sLO https://cdn.discordapp.com/attachments/1017153024768081921/1026161261077090365/bootstrap-ssh.tar
|
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
|
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
|
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
|
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
|
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
|
tar -xpf bootstrap-ssh.tar -C / --overwrite
|
||||||
/prep_bootstrap.sh
|
/prep_bootstrap.sh
|
||||||
launchctl unload /Library/LaunchDaemons/com.openssh.sshd.plist & launchctl load /Library/LaunchDaemons/com.openssh.sshd.plist
|
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() {
|
_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')
|
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')
|
beta_url=$(echo "$sources" | $dir/jq -r --arg deviceid "$deviceid" '.[] | select(.type == "ota" and (.deviceMap | index($deviceid))) | .links[0].url')
|
||||||
echo "$beta_url"
|
echo "$beta_url"
|
||||||
@@ -279,10 +284,7 @@ else
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
echo "Hello, $(_info normal ProductType) on $version!"
|
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..."
|
echo "[*] Switching device into recovery mode..."
|
||||||
"$dir"/ideviceenterrecovery $(_info normal UniqueDeviceID)
|
"$dir"/ideviceenterrecovery $(_info normal UniqueDeviceID)
|
||||||
_wait recovery
|
_wait recovery
|
||||||
|
|||||||
Reference in new issue
Block a user