欢迎来到天天文库
浏览记录
ID:32717495
大小:71.80 KB
页数:3页
时间:2019-02-15
《用bash脚本阻止itunes升级已越狱iphone的固件(mac)》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、声明:Bash脚本非小编发明,请Mac用户看好再行使用,如出现意外,请理解。如果有能力改善,欢迎联系我们。 众所周知iTunes的升级固件功能有时候非常讨厌,稍不注意就会点到升级,而越狱的iPhone在升级后会丢失越狱,有锁版用户更会丢失解锁而变成砖头或者Touch。下面这个脚本通过修改iTunes默认下载路径权限等办法避免以上情况的发生,下面就进入正式的内容(使用脚本,按文章最后的办法将下面文字复制到TextEdit内保存成相应格式即可):#!/bin/bashclearecho"ThisscriptwillchmodthedownloadlocationsforFirmw
2、areFiles,SoiTunescannotdownloadfirmware."echo"AKAitwillpreventiTunesfromautoupdatingyourdevice."echo""echo""echo"Torestorefirmwarejustholddownoptionandmanuallyselectthefirmwarefile."echo""clearecho"MadeBy:WesleyK"echo"wesley@wesleyk.me"echo"http://wesleyk.me"echo"http://wesleyk.me/twitter"sl
3、eep2read-sn1-p"Pressanykeytocontinue..."clearecho"NowIneedyourpasswordtocontinue"echo"KillingiTunesnow"sudo-vsudokillall-9iTunessleep2clearecho"Imgoingtomakeallthefolderneededtofutureproofafewthings"echo"Iferrorsoccurhere,Nobigdeals."sudomkdir~/Library/iTunes/iPadSoftwareUpdates/sudomkdir~
4、/Library/iTunes/iPodSoftwareUpdates/sudomkdir~/Library/iTunes/iPhoneSoftwareUpdates/sleep2clearecho"Iamgoingtodumpallthecurrentfilesinyourupdatefolders."echo"Thiswillpreventanyupdatesfromdownloadedfirmware."sudorm-rf~/Library/iTunes/iPadSoftwareUpdates/*sudorm-rf~/Library/iTunes/iPhone
5、SoftwareUpdates/*sudorm-rf~/Library/iTunes/iPodSoftwareUpdates/*sleep2clearecho"NowpreventingiTunesfromdownloadingnewfirmwares."sudochmod444~/Library/iTunes/iPadSoftwareUpdatessudochmod444~/Library/iTunes/iPodSoftwareUpdatessudochmod444~/Library/iTunes/iPhoneSoftwareUpdatessleep2c
6、learecho"MadeByWesleyK"echo"Givemecreditifyouuseit"echo"ForsafemeasuresIwouldrunthisscriptafteriTunesupdates,Itshouldn'taffectitbutIdon'tknowyet." 在TextEdit内容,找到Format>MakePlainText。之后将文件保存在任意不会被删除或者更改的地址即可。文件名保存为blockitunesupdates.sh或者阻止iTunes升级iPhone固件.sh也可以,随便,只要格式是.sh。 然后打开终端,使用chmod+x
7、文件名的命令给予脚本执行权限,执行时只要将此.sh文件拖入终端(Terminal)窗口后点击回车或者Return并注意按提示操作即可。 当然,在升级http://www.joohe.com/game/251.htmliTunes、OSX或者使用DiskUtility修复文件权限后,可能要重新运行此脚本一次。若想取消此脚本,将脚本中的444都改为755后再执行一次就可以。相信对于很多使用Mac系统的朋友来说,都很容易。
此文档下载收益归作者所有