Update extract.py

This commit is contained in:
gutosie
2022-03-12 22:50:01 +02:00
committed by GitHub
parent 7224f1ffd1
commit d70eb876e5

View File

@@ -853,6 +853,8 @@ def RemoveUnpackDirs():
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/pulse4kmin/force_pulse4kmini_READ.ME'):
rc = os.system('rm -r ' + getNeoLocation() + 'ImagesUpload/pulse4kmini/force_pulse4kmini_READ.ME; rm -r ' + getNeoLocation() + 'ImagesUpload/pulse4kmini/unforce_pulse4kmini.txt')
rc = os.system('rm -r ' + getNeoLocation() + 'ImagesUpload/pulse4kmin')
elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/dm520'):
rc = os.system('rm -r ' + getNeoLocation() + 'ImagesUpload/dm520')
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/unforce_h9combo.txt'):
rc = os.system('rm -r ' + getNeoLocation() + 'ImagesUpload/unforce_h9combo.txt')
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/imageversion'):
@@ -1103,10 +1105,15 @@ def NEOBootExtract(source, target, ZipDelete, Nandsim):
brand = 'osnino'
rootfname = 'rootfs.bin'
#Vimastec
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/osninopro'):
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/vs1000'):
os.chdir('vs1000')
brand = 'vs1000'
rootfname = 'rootfs.bin'
#Dreambox
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/dm520'):
os.chdir('dm520')
brand = 'dm520'
rootfname = 'rootfs.bin'
#Instalacja image nandsim
os.system('echo "Instalacja - nandsim w toku..."')
@@ -1326,6 +1333,9 @@ def NEOBootExtract(source, target, ZipDelete, Nandsim):
#Vimastec
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/vs1000'):
os.chdir('vs1000')
#Dreambox
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/odm520'):
os.chdir('odm520')
#Instalacja image ubi_reader
os.system('echo "Instalacja - ubi_reader w toku..."')