forked from Mirror/GodMode9
add a9lh stage2 payload removal to hax uninstall
This commit is contained in:
parent
7729605f9a
commit
9e1b5e0be2
@ -438,7 +438,12 @@ if allow -a S:
|
||||
rm -o -s 1:/rw/luma
|
||||
cp -n $[NATIVE_FIRM] S:/firm0.bin
|
||||
cp -n $[NATIVE_FIRM] S:/firm1.bin
|
||||
echo "CFW un-installed successfully"
|
||||
shaget S:/nand.bin@57FFE00:200 PRE_STAGE2_HASH
|
||||
if not sha S:/nand.bin@B800000:200 $[PRE_STAGE2_HASH]
|
||||
fget S:/nand.bin@57FFE00:1 PRE_STAGE2
|
||||
fill S:/nand.bin@B7FFE00:89C00 $[PRE_STAGE2]
|
||||
end
|
||||
echo "CFW uninstalled successfully"
|
||||
else
|
||||
echo "Permissions denied. Aborting."
|
||||
end
|
||||
@ -457,12 +462,17 @@ set NATIVE_FIRM $[GM9OUT]/NATIVE_FIRM.firm
|
||||
cp -w G:/exefs/.firm $[NATIVE_FIRM]
|
||||
imgumount
|
||||
|
||||
if allow S:/nand.bin
|
||||
allow 1:
|
||||
if allow -a S:
|
||||
allow -a 1:
|
||||
rm -o -s 1:/boot.firm
|
||||
rm -o -s 1:/rw/luma
|
||||
cp -n $[NATIVE_FIRM] S:/firm0.bin
|
||||
cp -n $[NATIVE_FIRM] S:/firm1.bin
|
||||
shaget S:/nand.bin@57FFE00:200 PRE_STAGE2_HASH
|
||||
if not sha S:/nand.bin@B800000:200 $[PRE_STAGE2_HASH]
|
||||
fget S:/nand.bin@57FFE00:1 PRE_STAGE2
|
||||
fill S:/nand.bin@B7FFE00:89C00 $[PRE_STAGE2]
|
||||
end
|
||||
echo "CFW uninstalled successfully"
|
||||
else
|
||||
echo "Permissions denied. Aborting."
|
||||
|
Loading…
x
Reference in New Issue
Block a user