mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-24 14:43:01 +01:00
add cpid detect for a8x
This commit is contained in:
1 parent
298700d7cd
commit
bea86386e7
1 file changed
+3
-5
+3
-5
@@ -47,7 +47,6 @@ Options:
|
|||||||
--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
|
||||||
--verbose Enable verbose boot on the device
|
--verbose Enable verbose boot on the device
|
||||||
--A8X Fix no such file or directory on iPadAir2
|
|
||||||
|
|
||||||
Subcommands:
|
Subcommands:
|
||||||
dfuhelper An alias for --dfuhelper
|
dfuhelper An alias for --dfuhelper
|
||||||
@@ -97,9 +96,6 @@ parse_opt() {
|
|||||||
print_help
|
print_help
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
--A8X)
|
|
||||||
disk = 6
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
echo "[-] Unknown option $1. Use $0 --help for help."
|
echo "[-] Unknown option $1. Use $0 --help for help."
|
||||||
exit 1;
|
exit 1;
|
||||||
@@ -495,7 +491,9 @@ if [ ! -f blobs/"$deviceid"-"$version".shsh2 ]; then
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "[*] Testing for baseband presence"
|
echo "[*] Testing for baseband presence"
|
||||||
if [ "$("$dir"/sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p2222 root@localhost "/usr/bin/mgask HasBaseband | grep -E 'true|false'")" = "false" ] && [ ! "$disk" == 6]; then
|
if ["${cpid}" == *"0x7001"*]; then
|
||||||
|
disk = 6
|
||||||
|
elif [ "$("$dir"/sshpass -p 'alpine' ssh -o StrictHostKeyChecking=no -p2222 root@localhost "/usr/bin/mgask HasBaseband | grep -E 'true|false'")" = "false" ] && [ ! "$disk" == 6]; then
|
||||||
disk = 7
|
disk = 7
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user