Update extract.py

This commit is contained in:
gutosie
2022-01-01 11:49:52 +02:00
committed by GitHub
parent 25d321e729
commit 46bec96f56

View File

@@ -135,7 +135,7 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow
if CopyKernel == 'True': if CopyKernel == 'True':
#mips vuplus #mips vuplus
if not os.path.exists('/gutosie'): if os.path.exists('/gutosie'):
#if getBoxHostName() == 'vuultimo' or getCPUSoC() == '7405' and os.path.exists('%s/ImageBoot/%s/etc/vtiversion.info' % (media, target)): #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)): if os.path.exists('%s/ImageBoot/%s/lib/modules' % (media, target)):
cmd = 'rm -r %s/ImageBoot/%s/lib/modules' % (media, target) cmd = 'rm -r %s/ImageBoot/%s/lib/modules' % (media, target)
@@ -152,7 +152,7 @@ def NEOBootMainEx(source, target, CopyFiles, CopyKernel, TvList, LanWlan, Sterow
cmd = 'cp -af /lib/firmware %s/ImageBoot/%s/lib > /dev/null 2>&1' % (media, target) cmd = 'cp -af /lib/firmware %s/ImageBoot/%s/lib > /dev/null 2>&1' % (media, target)
rc = os.system(cmd) rc = os.system(cmd)
os.system('echo "Copied system drivers. Not recommended copied kernel.bin for Ultimo HD."') os.system('echo "Copied system drivers. Not recommended copied kernel.bin for Ultimo HD."')
if not os.path.exists('/gutosie'): if os.path.exists('/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': #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('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"') os.system('echo "Copied kernel.bin STB-MIPS"')