From 4d3a8b5e8dde1513142924ced1da9d5513405a87 Mon Sep 17 00:00:00 2001 From: gutosie Date: Fri, 31 Dec 2021 18:23:17 +0200 Subject: [PATCH] Update extract.py --- NeoBoot/extract.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NeoBoot/extract.py b/NeoBoot/extract.py index bd558bc..5392141 100644 --- a/NeoBoot/extract.py +++ b/NeoBoot/extract.py @@ -135,7 +135,8 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow if CopyKernel == 'True': #mips vuplus - if getBoxHostName() == 'vuultimo' or getCPUSoC() == '7405' and os.path.exists('%s/ImageBoot/%s/etc/vtiversion.info' % (media, target)): + if fileExists('/gutosie'): + #if getBoxHostName() == 'vuultimo' or getCPUSoC() == '7405' and os.path.exists('%s/ImageBoot/%s/etc/vtiversion.info' % (media, target)): if os.path.exists('%s/ImageBoot/%s/lib/modules' % (media, target)): cmd = 'rm -r %s/ImageBoot/%s/lib/modules' % (media, target) rc = os.system(cmd) @@ -151,7 +152,8 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow cmd = 'cp -af /lib/firmware %s/ImageBoot/%s/lib > /dev/null 2>&1' % (media, target) rc = os.system(cmd) os.system('echo "Copied system drivers. Not recommended copied kernel.bin for Ultimo HD."') - elif getCPUtype() == "MIPS" and getBoxHostName() == 'vuultimo' or getBoxHostName() == 'bm750' or getBoxHostName() == 'vuduo' or getBoxHostName() == 'vuuno' or getBoxHostName() == 'vusolo' or getBoxHostName() == 'vuduo' or getBoxHostName() == 'vusolo2' or getBoxHostName() == 'vusolose' or getBoxHostName() == 'vuduo2' or getBoxHostName() == 'vuzero' or getBoxHostName() == 'mbultra': + if fileExists('/gutosie'): + #elif getCPUtype() == "MIPS" and getBoxHostName() == 'vuultimo' or getBoxHostName() == 'bm750' or getBoxHostName() == 'vuduo' or getBoxHostName() == 'vuuno' or getBoxHostName() == 'vusolo' or getBoxHostName() == 'vuduo' or getBoxHostName() == 'vusolo2' or getBoxHostName() == 'vusolose' or getBoxHostName() == 'vuduo2' or getBoxHostName() == 'vuzero' or getBoxHostName() == 'mbultra': os.system('mv ' + getNeoLocation() + 'ImagesUpload/vuplus/' + getBoxVuModel() + '/kernel_cfe_auto.bin ' + media_target + '/boot/' + getBoxHostName() + '.vmlinux.gz' + dev_null) os.system('echo "Copied kernel.bin STB-MIPS"') #arm vuplus arms