2017-07-12 09:15:27 +02:00
|
|
|
# SafeB9SInstaller reverter script (restores the backed up data)
|
|
|
|
# Not recommended on custom NCSDs(!)
|
|
|
|
# last changed: 20170706
|
|
|
|
# author: d0k3
|
|
|
|
|
2017-07-16 22:52:59 +02:00
|
|
|
set SUCCESSMSG "SB9SI reverted successfully"
|
2017-07-12 09:15:27 +02:00
|
|
|
|
|
|
|
# check for boot9strap firm backup
|
|
|
|
set ERRORMSG "SB9SI (pre0.0.7) FIRM backup not found"
|
|
|
|
find 0:/boot9strap/firm0firm1.bak NULL
|
|
|
|
|
|
|
|
# inject the backups @ the correct locations
|
|
|
|
set ERRORMSG "SB9SI not reverted.\nNo changes written to the system."
|
|
|
|
ask "!!WARNING!!\nThis will restore the backups\nfound in 0:/boot9strap/.\n \nProceed?"
|
|
|
|
allow S:/nand.bin
|
|
|
|
inject -n -s -o 0:/boot9strap/sector0x96.bak S:/nand.bin@12C00
|
|
|
|
inject -n 0:/boot9strap/firm0firm1.bak S:/nand.bin@B130000
|