fix solose - unpacking image

This commit is contained in:
gutosie
2021-04-12 21:06:52 +03:00
committed by GitHub
parent 76af32e13d
commit eca520c472

View File

@@ -1103,8 +1103,12 @@ def NEOBootExtract(source, target, ZipDelete):
os.chdir('solo') os.chdir('solo')
os.system('mv -f root_cfe_auto.jffs2 rootfs.bin') os.system('mv -f root_cfe_auto.jffs2 rootfs.bin')
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/vuplus/solose'): if os.path.exists('' + getNeoLocation() + 'ImagesUpload/vuplus/solose'):
os.chdir('solose') if os.path.exists('' + getNeoLocation() + 'ImagesUpload/vuplus/solose/root_cfe_auto.bin'):
os.system('mv -f root_cfe_auto.jffs2 rootfs.bin') os.chdir('solose')
os.system('mv -f root_cfe_auto.bin rootfs.bin')
elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/vuplus/solose/root_cfe_auto.jffs2'):
os.chdir('solose')
os.system('mv -f root_cfe_auto.jffs2 rootfs.bin')
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/vuplus/ultimo'): if os.path.exists('' + getNeoLocation() + 'ImagesUpload/vuplus/ultimo'):
os.chdir('ultimo') os.chdir('ultimo')
os.system('mv -f root_cfe_auto.jffs2 rootfs.bin') os.system('mv -f root_cfe_auto.jffs2 rootfs.bin')