mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
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
|
rm -o -s 1:/rw/luma
|
||||||
cp -n $[NATIVE_FIRM] S:/firm0.bin
|
cp -n $[NATIVE_FIRM] S:/firm0.bin
|
||||||
cp -n $[NATIVE_FIRM] S:/firm1.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
|
else
|
||||||
echo "Permissions denied. Aborting."
|
echo "Permissions denied. Aborting."
|
||||||
end
|
end
|
||||||
@ -457,12 +462,17 @@ set NATIVE_FIRM $[GM9OUT]/NATIVE_FIRM.firm
|
|||||||
cp -w G:/exefs/.firm $[NATIVE_FIRM]
|
cp -w G:/exefs/.firm $[NATIVE_FIRM]
|
||||||
imgumount
|
imgumount
|
||||||
|
|
||||||
if allow S:/nand.bin
|
if allow -a S:
|
||||||
allow 1:
|
allow -a 1:
|
||||||
rm -o -s 1:/boot.firm
|
rm -o -s 1:/boot.firm
|
||||||
rm -o -s 1:/rw/luma
|
rm -o -s 1:/rw/luma
|
||||||
cp -n $[NATIVE_FIRM] S:/firm0.bin
|
cp -n $[NATIVE_FIRM] S:/firm0.bin
|
||||||
cp -n $[NATIVE_FIRM] S:/firm1.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"
|
echo "CFW uninstalled successfully"
|
||||||
else
|
else
|
||||||
echo "Permissions denied. Aborting."
|
echo "Permissions denied. Aborting."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user