From 67714a188bfd2d9cd2b56d6b5bff68424d74caac Mon Sep 17 00:00:00 2001 From: gutosie Date: Tue, 7 Dec 2021 08:20:14 +0200 Subject: [PATCH] Update plugin.py --- NeoBoot/plugin.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py index 2fa3006..da390aa 100644 --- a/NeoBoot/plugin.py +++ b/NeoBoot/plugin.py @@ -747,16 +747,14 @@ class NeoBootImageChoose(Screen): self['label18'] = Label('') self['label19'] = Label('') self['label20'] = Label('') - if fileExists('/usr/lib/periodon/.kodn'): - self['label21'] = Label('On - VIP') - else: - self['label21'] = Label('Off - VIP') if getCheckActivateVip() == getBoxMacAddres(): - pass - elif getCheckActivateVip() != getBoxMacAddres(): + self['label21'] = Label('VIP: On') + else: + self['label21'] = Label('VIP: Off') + if getCheckActivateVip() != getBoxMacAddres(): self['label22'] = Label('Ethernet MAC not found !') - elif not fileExists('/usr/lib/periodon/.kodn'): - self['label22'] = Label('PRESS VIP PIN CODE NOW: xxxx') + if not fileExists('/usr/lib/periodon/.kodn'): + self['label22'] = Label('PRESS VIP PIN CODE NOW: xxxx') self['actions'] = ActionMap(['WizardActions', 'ColorActions', 'MenuActions',