Update plugin.py

This commit is contained in:
gutosie
2021-11-27 14:18:43 +02:00
committed by GitHub
parent a4f7414174
commit 98e49fb093

View File

@@ -16,7 +16,7 @@
#--------------------------------------------- NEOBOOT ---------------------------------------------# #--------------------------------------------- NEOBOOT ---------------------------------------------#
from __future__ import absolute_import from __future__ import absolute_import
from . import _ from . import _
from Plugins.Extensions.NeoBoot.files.stbbranding import LogCrashGS, getSupportedTuners, getLabelDisck, getINSTALLNeo, getNeoLocation, getLocationMultiboot, getNeoMount, getNeoMount2, getNeoMount3, getNeoMount4, getNeoMount5, getFSTAB, getFSTAB2, getKernelVersionString, getKernelImageVersion, getCPUtype, getCPUSoC, getImageNeoBoot, getBoxVuModel, getBoxHostName, getTunerModel, getImageDistroN, getFormat, getNEO_filesystems, getBoxModelVU, getMountPointAll, getMountPointNeo from Plugins.Extensions.NeoBoot.files.stbbranding import LogCrashGS, getSupportedTuners, getLabelDisck, getINSTALLNeo, getNeoLocation, getLocationMultiboot, getNeoMount, getNeoMount2, getNeoMount3, getNeoMount4, getNeoMount5, getFSTAB, getFSTAB2, getKernelVersionString, getKernelImageVersion, getCPUtype, getCPUSoC, getImageNeoBoot, getBoxVuModel, getBoxHostName, getTunerModel, getImageDistroN, getFormat, getNEO_filesystems, getBoxModelVU, getMountPointAll, getMountPointNeo, getCheckActivateVip, getBoxMacAddres
from Plugins.Extensions.NeoBoot.files import Harddisk from Plugins.Extensions.NeoBoot.files import Harddisk
from Components.About import about from Components.About import about
from enigma import getDesktop, eTimer from enigma import getDesktop, eTimer
@@ -1661,7 +1661,7 @@ def main(session, **kwargs):
f2 = open('%sImageBoot/.neonextboot' % getNeoLocation(), 'r') f2 = open('%sImageBoot/.neonextboot' % getNeoLocation(), 'r')
mypath2 = f2.readline().strip() mypath2 = f2.readline().strip()
f2.close() f2.close()
if mypath2 != 'Flash' or mypath2 == 'Flash' and checkimage(): if mypath2 != 'Flash' or mypath2 == 'Flash' and checkimage() and getCheckActivateVip() == getBoxMacAddres():
if fileExists('/.multinfo') or fileExists('/usr/lib/periodon/.fullaccess'): if fileExists('/.multinfo') or fileExists('/usr/lib/periodon/.fullaccess'):
session.open(NeoBootImageChoose) session.open(NeoBootImageChoose)