Update plugin.py

This commit is contained in:
gutosie
2021-12-17 12:48:53 +02:00
committed by GitHub
parent 9a34e9a664
commit e3911cb17a

View File

@@ -756,15 +756,16 @@ class NeoBootImageChoose(Screen):
self['label21'] = Label('VIP: On')
else:
self['label21'] = Label('VIP: Off')
if getCheckActivateVip() != getBoxMacAddres() and not fileExists('/.multinfo'):
self['label22'] = Label(_('Ethernet MAC not found.'))
if not fileExists('/usr/lib/periodon/.kodn') and not fileExists('/.multinfo'):
self['label22'] = Label(_('PRESS VIP PIN CODE NOW: xxxx'))
if getTestToTest() != UPDATEVERSION and not fileExists('/.multinfo'):
self['label23'] = Label(_('Update ' + getTestToTest() + ' is available.'))
else:
if getCheckActivateVip() == getBoxMacAddres() and fileExists('/usr/lib/periodon/.kodn') and getTestToTest() == UPDATEVERSION :
self['label24'] = Label(_('CPU: ' + getCPUtype() + ' ' + getChipSetString() + ''))
if not fileExists('/etc/vtiversion.info') and not fileExists('/.multinfo'):
if getCheckActivateVip() != getBoxMacAddres():
self['label22'] = Label(_('Ethernet MAC not found.'))
if not fileExists('/usr/lib/periodon/.kodn'):
self['label22'] = Label(_('PRESS VIP PIN CODE NOW: xxxx'))
if getTestToTest() != UPDATEVERSION :
self['label23'] = Label(_('Update ' + getTestToTest() + ' is available.'))
else:
if getCheckActivateVip() == getBoxMacAddres() and fileExists('/usr/lib/periodon/.kodn') and getTestToTest() == UPDATEVERSION :
self['label24'] = Label(_('CPU: ' + getCPUtype() + ' ' + getChipSetString() + ''))
self['actions'] = ActionMap(['WizardActions',
'ColorActions',
'MenuActions',