From 33c7e9ce2511d5f5c6e0e49da5187c57a5dfcf17 Mon Sep 17 00:00:00 2001 From: gutosie Date: Sun, 19 Sep 2021 22:54:44 +0300 Subject: [PATCH] Update extract.py --- NeoBoot/extract.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/NeoBoot/extract.py b/NeoBoot/extract.py index 6516009..8be1922 100644 --- a/NeoBoot/extract.py +++ b/NeoBoot/extract.py @@ -1292,6 +1292,25 @@ def NEOBootExtract(source, target, ZipDelete): rc = os.system(cmd) cmd = 'rm -rf ' + getNeoLocation() + 'ubi' rc = os.system(cmd) + + elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/update/lunix/cfe/oe_rootfs.bin'): + #os.chdir('' + getNeoLocation() + 'ImagesUploadupdate/lunix/cfe') + #os.system('mv -f oe_rootfs.bin rootfs.bin') + os.system('mv -f ' + getNeoLocation() + 'ImagesUpload/update/lunix/cfe/oe_rootfs.bin ' + getNeoLocation() + 'ImagesUpload/rootfs.bin') + 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) + #vuplus________________________ elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/vuplus/solo4k'): os.system('echo "Please wait. System installation VuPlus Solo4K."')