From 127e63cf0d691ea0a353ebd1de69ec6336ae8561 Mon Sep 17 00:00:00 2001 From: gutosie Date: Tue, 10 Jan 2023 08:23:04 +0200 Subject: [PATCH] Update extract.py --- NeoBoot/extract.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/NeoBoot/extract.py b/NeoBoot/extract.py index 51f4fb6..365c2a5 100644 --- a/NeoBoot/extract.py +++ b/NeoBoot/extract.py @@ -1428,11 +1428,14 @@ def NEOBootExtract(source, target, ZipDelete, Nandsim): #ARM elif getCPUtype() == 'ARMv7': os.chdir('' + getNeoLocation() + 'ImagesUpload') - if os.path.exists('' + getNeoLocation() + 'ImagesUpload/h9/rootfs.ubi') or os.path.exists('' + getNeoLocation() + 'ImagesUpload/h8/rootfs.ubi'): + if os.path.exists('' + getNeoLocation() + 'ImagesUpload/h9/rootfs.ubi') or os.path.exists('' + getNeoLocation() + 'ImagesUpload/h8/rootfs.ubi') or os.path.exists('' + getNeoLocation() + 'ImagesUpload/e2/update/rootfs.ubi'): if os.path.exists('' + getNeoLocation() + 'ImagesUpload/h9/rootfs.ubi'): os.chdir('h9') elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/h8/rootfs.ubi'): os.chdir('h8') + elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/e2/update/rootfs.ubi'): + os.system('mv -f ' + getNeoLocation() + 'ImagesUpload/e2/update/rootfs.ubi/rootfs.ubi ' + getNeoLocation() + 'ImagesUpload/e2') + os.chdir('e2') os.system('mv -f rootfs.ubi rootfs.bin') os.system('echo "Instalacja - ubi_reader w toku..."') print("[NeoBoot] Extracting UBIFS image and moving extracted image to our target")