Update plugin.py

This commit is contained in:
gutosie
2021-12-17 12:55:24 +02:00
committed by GitHub
parent e3911cb17a
commit 1bdb705728

View File

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