From 257d1da8cc47bd393d510612089684ae52937057 Mon Sep 17 00:00:00 2001 From: aspargas2 Date: Wed, 21 Aug 2019 08:07:29 -0400 Subject: [PATCH 1/2] add a9lh stage2 payload removal to hax uninstall --- GM9Megascript.gm9 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/GM9Megascript.gm9 b/GM9Megascript.gm9 index 6e44329..2a3b17a 100644 --- a/GM9Megascript.gm9 +++ b/GM9Megascript.gm9 @@ -438,6 +438,11 @@ if allow -a S: 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 un-installed successfully" else echo "Permissions denied. Aborting." @@ -463,6 +468,11 @@ if allow S:/nand.bin 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." From 49df74b75470d80fbf1616f8a47603bd09c45c54 Mon Sep 17 00:00:00 2001 From: aspargas2 Date: Wed, 21 Aug 2019 08:09:03 -0400 Subject: [PATCH 2/2] minor consistency changes to hax uninstall --- GM9Megascript.gm9 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GM9Megascript.gm9 b/GM9Megascript.gm9 index 2a3b17a..3688963 100644 --- a/GM9Megascript.gm9 +++ b/GM9Megascript.gm9 @@ -443,7 +443,7 @@ if allow -a S: fget S:/nand.bin@57FFE00:1 PRE_STAGE2 fill S:/nand.bin@B7FFE00:89C00 $[PRE_STAGE2] end - echo "CFW un-installed successfully" + echo "CFW uninstalled successfully" else echo "Permissions denied. Aborting." end @@ -462,8 +462,8 @@ 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