2017-07-12 09:15:27 +02:00
|
|
|
# SigHax Uninstaller script (reverts from SigHax to stock)
|
|
|
|
# This is for retail O3DS units only
|
|
|
|
# Not recommended on custom NCSDs(!)
|
2017-07-16 22:17:18 +02:00
|
|
|
# last changed: 20170716
|
2017-07-12 09:15:27 +02:00
|
|
|
# author: d0k3
|
|
|
|
|
2017-07-16 23:06:11 +02:00
|
|
|
set SUCCESSMSG "CFW uninstalled successfully"
|
2017-07-12 09:15:27 +02:00
|
|
|
|
|
|
|
# grab NATIVE_FIRM out of the NCCH
|
|
|
|
set ERRORMSG "NATIVE_FIRM not found.\nIs this a O3DS?"
|
2017-09-26 00:03:29 +02:00
|
|
|
find -f 1:/title/00040138/00000002/content/????????.app NATIVE_NCCH
|
2017-07-12 09:15:27 +02:00
|
|
|
imgmount $[NATIVE_NCCH]
|
|
|
|
verify G:/exefs/.firm
|
|
|
|
set NATIVE_FIRM $[GM9OUT]/NATIVE_FIRM.firm
|
2017-09-26 00:03:29 +02:00
|
|
|
cp -w G:/exefs/.firm $[NATIVE_FIRM]
|
2017-07-12 09:15:27 +02:00
|
|
|
imgumount
|
|
|
|
|
|
|
|
# Write NATIVE_FIRM to the FIRM partitions
|
|
|
|
set ERRORMSG "Sighax not uninstalled.\nNo changes written to the system."
|
|
|
|
ask "!!WARNING!!\nThis will remove sighax and\nrevert your system to stock.\n \nProceed?"
|
|
|
|
allow S:/nand.bin # same permission level for all firms
|
2017-07-16 22:15:42 +02:00
|
|
|
allow 1:/ # for ctrnand file removal
|
|
|
|
rm -o -s 1:/boot.firm
|
|
|
|
rm -o -s 1:/rw/luma
|
2017-07-12 09:15:27 +02:00
|
|
|
cp -n $[NATIVE_FIRM] S:/firm0.bin
|
2017-07-16 22:15:42 +02:00
|
|
|
cp -n $[NATIVE_FIRM] S:/firm1.bin
|