This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
int main() { | |
system("nvram -c"); | |
system("nvram boot-partition=2"); | |
system("nvram auto-boot=1"); | |
//system("nvram auto-boot=0"); // for 4.2.x and lower, to send device to recovery after restore | |
system("umount /mnt1"); | |
system("mount_hfs /dev/disk0s1 /mnt1"); | |
system("dd if=/iBoot of=/mnt1/iBEC bs=512k"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# diff between theapplewiki and fwkeydb ivkeys | |
types=(iPhone1,1 iPhone1,2 iPhone2,1 iPhone3,1 iPhone3,2 iPhone3,3 iPhone4,1 iPhone5,1 iPhone5,2 iPhone5,3 iPhone5,4 | |
iPad1,1 iPad2,1 iPad2,2 iPad2,3 iPad2,4 iPad2,5 iPad2,6 iPad2,7 iPad3,1 iPad3,2 iPad3,3 iPad3,4 iPad3,5 iPad3,6 | |
iPod1,1 iPod2,1 iPod3,1 iPod4,1 iPod5,1) | |
#types=(iPhone2,1) | |
comps=(AppleLogo BatteryCharging BatteryCharging0 BatteryCharging1 BatteryFull BatteryLow0 BatteryLow1 BatteryPlugin DeviceTree KernelCache LLB RecoveryMode EraseRamdisk iBEC iBSS iBoot UpgradeRamdisk) |
OlderNewer