From ce1ea680c6119c7328193598acf23f8d25e37fec Mon Sep 17 00:00:00 2001 From: gutosie Date: Fri, 4 Feb 2022 22:07:07 +0200 Subject: [PATCH] Update extract.py --- NeoBoot/extract.py | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/NeoBoot/extract.py b/NeoBoot/extract.py index b00b35b..1193ea8 100644 --- a/NeoBoot/extract.py +++ b/NeoBoot/extract.py @@ -806,17 +806,9 @@ def RemoveUnpackDirs(): rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/bootargs.bin ' + getNeoLocation() + 'ImagesUpload/amiko') rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/fastboot.bin ' + getNeoLocation() + 'ImagesUpload/amiko') rc = os.system('rm -r ' + getNeoLocation() + 'ImagesUpload/amiko') - elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/gigablue/x1'): - rc = os.system('rm -r ' + getNeoLocation() + 'ImagesUpload/gigablue') - elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/gigablue/x34k '): - rc = os.system('rm -r ' + getNeoLocation() + 'ImagesUpload/gigablue') - elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/gigablue'): - rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/usb_update.bin ' + getNeoLocation() + 'ImagesUpload/gigablue') - rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/apploader.bin ' + getNeoLocation() + 'ImagesUpload/gigablue') - rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/bootargs.bin ' + getNeoLocation() + 'ImagesUpload/gigablue') - rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/fastboot.bin ' + getNeoLocation() + 'ImagesUpload/gigablue') - rc = os.system('rm -r ' + getNeoLocation() + 'ImagesUpload/gigablue') - elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/gigablue'): + elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/gigablue/x1') or os.path.exists('' + getNeoLocation() + 'ImagesUpload/gigablue/x34k'): + rc = os.system('rm -r ' + getNeoLocation() + 'ImagesUpload/gigablue') + elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/gigablue') and os.path.exists('' + getNeoLocation() + 'ImagesUpload/usb_update.bin'): rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/usb_update.bin ' + getNeoLocation() + 'ImagesUpload/gigablue') rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/apploader.bin ' + getNeoLocation() + 'ImagesUpload/gigablue') rc = os.system('mv ' + getNeoLocation() + 'ImagesUpload/bootargs.bin ' + getNeoLocation() + 'ImagesUpload/gigablue')