mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-01 03:45:48 +01:00
Update extract.py
This commit is contained in:
@@ -1148,6 +1148,7 @@ def NEOBootExtract(source, target, ZipDelete, Nandsim):
|
||||
rootfname = 'rootfs.bin'
|
||||
#Dreambox
|
||||
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/dm520'):
|
||||
os.system('echo "If the image installation failed, try disabling the use of nandsim installation"')
|
||||
os.chdir('dm520')
|
||||
brand = 'dm520'
|
||||
rootfname = 'rootfs.bin'
|
||||
@@ -1389,6 +1390,9 @@ def NEOBootExtract(source, target, ZipDelete, Nandsim):
|
||||
cmd = 'python ' + extensions_path + 'NeoBoot/ubi_reader/ubi_extract_files.py rootfs.bin -o' + getNeoLocation() + 'ubi'
|
||||
rc = os.system(cmd)
|
||||
os.chdir('/home/root')
|
||||
if os.path.exists('' + getNeoLocation() + 'ubi/dreambox-rootfs '):
|
||||
os.system('mv ' + getNeoLocation() + 'ubi/dreambox-rootfs/* ' + getNeoLocation() + 'ImageBoot/%s/' % target)
|
||||
else:
|
||||
os.system('mv ' + getNeoLocation() + 'ubi/rootfs/* ' + getNeoLocation() + 'ImageBoot/%s/' % target)
|
||||
cmd = 'chmod -R +x ' + getNeoLocation() + 'ImageBoot/' + target
|
||||
rc = os.system(cmd)
|
||||
|
||||
Reference in New Issue
Block a user