mount_filesystems changed
This commit is contained in:
parent
d4fd5a752c
commit
972ee0ae9f
1 changed files with 47 additions and 37 deletions
14
downr1n.sh
14
downr1n.sh
|
|
@ -871,8 +871,12 @@ if [ true ]; then
|
|||
echo "[*] Mounting filesystems ..."
|
||||
if [[ "$version" = "13."* ]]; then
|
||||
remote_cmd "/sbin/mount_apfs /dev/disk0s1s1 /mnt1"
|
||||
else
|
||||
fi
|
||||
|
||||
if [ ! "$downgrade" = "1" ] && [[ ! "$version" = "13."* ]]; then
|
||||
remote_cmd "/usr/bin/mount_filesystems 2>/dev/null"
|
||||
elif [ "$downgrade" = "1" ] && [[ ! "$version" = "13."* ]]; then
|
||||
remote_cmd "/usr/bin/mount_filesystems_nouser 2>/dev/null"
|
||||
fi
|
||||
|
||||
has_active=$(remote_cmd "ls /mnt6/active" 2> /dev/null)
|
||||
|
|
@ -1212,8 +1216,11 @@ if [ true ]; then
|
|||
cp -v work/*.img4 "boot/${deviceid}" # copying all file img4 to boot
|
||||
|
||||
echo "[*] Sucess Patching the boot files"
|
||||
echo "[*] Patching the llb in the ipsw to avoid false dfu mode"
|
||||
|
||||
echo "[*] Checking if the llb was already replaced"
|
||||
|
||||
if [ ! -e "boot/${deviceid}/.llbreplaced" ]; then
|
||||
echo "[*] Patching the llb in the ipsw to avoid false dfu mode"
|
||||
echo "[=] Hi, please i need that you write the ios version that this device is on or the version of the ios that it was on (if this device is already downgraded), most of the time is the lastest version of ios. write 0 if you want to skip this (it is not recommended to skip this as this can avoid false dfu mode)"
|
||||
|
||||
while true
|
||||
|
|
@ -1248,9 +1255,12 @@ if [ true ]; then
|
|||
zip --update "$mainDir/$ipsw" Firmware/all_flash/"$(awk "/""${model}""/{x=1}x&&/LLB[.]/{print;exit}" BuildManifest.plist | grep '<string>' |cut -d\> -f2 |cut -d\< -f1 | sed 's/Firmware[/]all_flash[/]//')" Firmware/all_flash//$(awk "/""${model}""/{x=1}x&&/LLB[.]/{print;exit}" BuildManifest.plist | grep '<string>' |cut -d\> -f2 |cut -d\< -f1 | sed 's/Firmware[/]all_flash[/]//')
|
||||
cd $mainDir
|
||||
echo "[*] Replaced LLB suscessfully"
|
||||
|
||||
touch "boot/${deviceid}/.llbreplaced"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
sleep 1
|
||||
|
||||
set +e
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue