From 815b88d5731e22868fba00bca65013874d69a238 Mon Sep 17 00:00:00 2001 From: gutosie Date: Fri, 31 Dec 2021 18:21:50 +0200 Subject: [PATCH] Update plugin.py --- NeoBoot/plugin.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py index c3461c4..3918883 100644 --- a/NeoBoot/plugin.py +++ b/NeoBoot/plugin.py @@ -668,7 +668,9 @@ class NeoBootInstallation(Screen): # STB MIPS elif getCPUtype() == 'MIPS': #vuplus stb mtd1 - if getBoxHostName() == 'bm750' or getBoxHostName() == 'vuduo' or getBoxHostName() == 'vusolo' or getBoxHostName() == 'vuuno' or getBoxHostName() == 'vuultimo': + #blokada dla mips + if fileExists('/gutosie'): + #if getBoxHostName() == 'bm750' or getBoxHostName() == 'vuduo' or getBoxHostName() == 'vusolo' or getBoxHostName() == 'vuuno' or getBoxHostName() == 'vuultimo': if fileExists('/usr/sbin/nanddump'): os.system('cd ' + getNeoLocation() + 'ImagesUpload/.kernel/; /usr/sbin/nanddump --omitoob -f vmlinux.gz /dev/mtd1; mv ./vmlinux.gz ./' + getBoxHostName() + '.vmlinux.gz') elif not fileExists('/usr/sbin/nanddump'): @@ -676,7 +678,9 @@ class NeoBootInstallation(Screen): os.system('cd ' + LinkNeoBoot + '/; rm ./bin/fontforneoboot.ttf; rm ./bin/libpngneo; mv ' + LinkNeoBoot + '/tmpfiles/target/vu_dev_mtd1.sh ' + LinkNeoBoot + '/files/kernel.sh;mv ' + LinkNeoBoot + '/tmpfiles/runpy/vu_mtd1_run.py ' + LinkNeoBoot + '/run.py; cd') #vuplus stb mtd2 - elif getBoxHostName() == 'vusolo2' or getBoxHostName() == 'vuduo2' or getBoxHostName() == 'vusolose' or getBoxHostName() == 'vuzero': + #blokada dla mips + eif fileExists('/gutosie'): + #elif getBoxHostName() == 'vusolo2' or getBoxHostName() == 'vuduo2' or getBoxHostName() == 'vusolose' or getBoxHostName() == 'vuzero': if fileExists('/usr/sbin/nanddump'): os.system('cd ' + getNeoLocation() + 'ImagesUpload/.kernel/; /usr/sbin/nanddump /dev/mtd2 --omitoob -f vmlinux.gz /dev/mtd2; mv ./vmlinux.gz ./' + getBoxHostName() + '.vmlinux.gz') elif not fileExists('/usr/sbin/nanddump'):