From e3911cb17abe27b0d248890d3a041222f6ea7eac Mon Sep 17 00:00:00 2001 From: gutosie Date: Fri, 17 Dec 2021 12:48:53 +0200 Subject: [PATCH] Update plugin.py --- NeoBoot/plugin.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py index 5701876..4c13d98 100644 --- a/NeoBoot/plugin.py +++ b/NeoBoot/plugin.py @@ -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',