From 1f73c5ca06d53e244c23275d9f18ff514eda5f74 Mon Sep 17 00:00:00 2001 From: gutosie Date: Mon, 28 Mar 2022 20:49:42 +0300 Subject: [PATCH] Update plugin.py --- NeoBoot/plugin.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py index 0b0d70d..a4ad521 100644 --- a/NeoBoot/plugin.py +++ b/NeoBoot/plugin.py @@ -815,8 +815,10 @@ class NeoBootImageChoose(Screen): self['label11'] = Label('') self['label12'] = Label('') self['label13'] = Label(_('Version update: ')) - if getCheckActivateVip() == getBoxMacAddres() and fileExists('/usr/lib/periodon/.kodn'): + if fileExists('/.multinfo') and getImageNeoBoot() != "Flash": self['label14'] = Label(_('VIP-on NeoBoot: ')) + elif getCheckActivateVip() == getBoxMacAddres() and fileExists('/usr/lib/periodon/.kodn'): + self['label14'] = Label(_('VIP-on NeoBoot: ')) else: self['label14'] = Label(_('VIP-off NeoBoot: ')) self['label15'] = Label(_('Memory disc:')) @@ -825,7 +827,9 @@ class NeoBootImageChoose(Screen): self['label18'] = Label('') self['label19'] = Label('') self['label20'] = Label('') - if getCheckActivateVip() == getBoxMacAddres() and fileExists('/usr/lib/periodon/.kodn'): + if fileExists('/.multinfo') and getImageNeoBoot() != "Flash": + self['label21'] = Label('VIP-OK!') + elif getCheckActivateVip() == getBoxMacAddres() and fileExists('/usr/lib/periodon/.kodn'): self['label21'] = Label('VIP-OK!') else: self['label21'] = Label('Enter pin code')