mirror of
				https://github.com/gutosie/neoboot.git
				synced 2025-10-31 03:15:48 +01:00 
			
		
		
		
	Update extract.py
This commit is contained in:
		| @@ -1701,6 +1701,26 @@ def NEOBootExtract(source, target, ZipDelete, Nandsim): | ||||
|             os.system('echo "Please wait. System installation dinobot w toku..."') | ||||
|             cmd = 'chmod 777 ' + getNeoLocation() + 'ImagesUpload/dinobot/uu55; tar -jxf ' + getNeoLocation() + 'ImagesUpload/dinobot/u55/rootfs.tar.bz2 -C ' + getNeoLocation() + 'ImageBoot/' + target + ' > /dev/null 2>&1' | ||||
|             rc = os.system(cmd) | ||||
|              | ||||
|         elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/dinobot/u55'): | ||||
|             os.chdir('u55') | ||||
|             if os.path.exists('' + getNeoLocation() + 'ImagesUpload/dinobot/u55'): | ||||
|                 os.chdir('u55') | ||||
|                 os.system('echo "Instalacja - ubi_reader w toku..."') | ||||
|                 print("[NeoBoot] Extracting UBIFS image and moving extracted image to our target") | ||||
|                 cmd = 'chmod 777 ' + extensions_path + 'NeoBoot/ubi_reader/ubi_extract_files.py' | ||||
|                 rc = os.system(cmd) | ||||
|                 cmd = 'python ' + extensions_path + 'NeoBoot/ubi_reader/ubi_extract_files.py rootfs.bin -o ' + getNeoLocation() + 'ubi' | ||||
|                 rc = os.system(cmd) | ||||
|                 os.chdir('/home/root') | ||||
|                 cmd = 'cp -af -p ' + getNeoLocation() + 'ubi/rootfs/* ' + getNeoLocation() + 'ImageBoot/' + target | ||||
|                 rc = os.system(cmd) | ||||
|                 cmd = 'chmod -R +x ' + getNeoLocation() + 'ImageBoot/' + target | ||||
|                 rc = os.system(cmd) | ||||
|                 cmd = 'rm -rf ' + getNeoLocation() + 'ubi' | ||||
|                 rc = os.system(cmd)             | ||||
|              | ||||
|              | ||||
|         elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/dinobot/u5pvr'): | ||||
|             os.system('echo "Please wait. System installation dinobot w toku..."') | ||||
|             cmd = 'chmod 777 ' + getNeoLocation() + 'ImagesUpload/dinobot/u5pvr; tar -jxf ' + getNeoLocation() + 'ImagesUpload/dinobot/u5pvr/rootfs.tar.bz2 -C ' + getNeoLocation() + 'ImageBoot/' + target + ' > /dev/null 2>&1' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user