mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-30 21:19:48 +01:00
add china workaround
This commit is contained in:
1 parent
27d9e6fa40
commit
33c4702b6d
1 file changed
+13
-2
+13
-2
@@ -65,6 +65,7 @@ Options:
|
|||||||
--no-baseband Indicate that the device does not have a baseband
|
--no-baseband Indicate that the device does not have a baseband
|
||||||
--restorerootfs Remove the jailbreak (Actually more than restore rootfs)
|
--restorerootfs Remove the jailbreak (Actually more than restore rootfs)
|
||||||
--debug Debug the script
|
--debug Debug the script
|
||||||
|
--china Enable Mainland China specific workarounds (启用对中国大陆网络环境的替代办法)
|
||||||
--serial Enable serial output on the device (only needed for testing with a serial cable)
|
--serial Enable serial output on the device (only needed for testing with a serial cable)
|
||||||
|
|
||||||
Subcommands:
|
Subcommands:
|
||||||
@@ -105,6 +106,9 @@ parse_opt() {
|
|||||||
--restorerootfs)
|
--restorerootfs)
|
||||||
restorerootfs=1
|
restorerootfs=1
|
||||||
;;
|
;;
|
||||||
|
--china)
|
||||||
|
china=1
|
||||||
|
;;
|
||||||
--debug)
|
--debug)
|
||||||
debug=1
|
debug=1
|
||||||
;;
|
;;
|
||||||
@@ -405,7 +409,12 @@ fi
|
|||||||
# ============
|
# ============
|
||||||
|
|
||||||
# Update submodules
|
# Update submodules
|
||||||
git submodule update --init --recursive
|
if [ "$china" != "1" ]; then
|
||||||
|
git submodule update --init --recursive
|
||||||
|
elif ! [ -f ramdisk/sshrd.sh ]; then
|
||||||
|
curl -LO https://static.palera.in/deps/ramdisk.tgz
|
||||||
|
tar xf ramdisk.tgz
|
||||||
|
fi
|
||||||
|
|
||||||
# Re-create work dir if it exists, else, make it
|
# Re-create work dir if it exists, else, make it
|
||||||
if [ -e work ]; then
|
if [ -e work ]; then
|
||||||
@@ -1076,7 +1085,9 @@ echo "When you unlock the device, it will respring about 30 seconds after"
|
|||||||
echo "If this is your first time jailbreaking, open the new palera1n app, then press Install"
|
echo "If this is your first time jailbreaking, open the new palera1n app, then press Install"
|
||||||
echo "Otherwise, press Do All in the settings section of the app"
|
echo "Otherwise, press Do All in the settings section of the app"
|
||||||
echo "If you have any issues, please first check the common-issues.md document for common issues"
|
echo "If you have any issues, please first check the common-issues.md document for common issues"
|
||||||
echo "If that list doesn't solve your issue, join the Discord server and ask for help: https://dsc.gg/palera1n"
|
if [ "$china" != "1" ]; then
|
||||||
|
echo "If that list doesn't solve your issue, join the Discord server and ask for help: https://dsc.gg/palera1n"
|
||||||
|
fi
|
||||||
echo "Enjoy!"
|
echo "Enjoy!"
|
||||||
|
|
||||||
} 2>&1 | tee logs/${log}
|
} 2>&1 | tee logs/${log}
|
||||||
|
|||||||
Reference in new issue
Block a user