From f4ad20483eec0eec82d696798bde9b150a2c28ad Mon Sep 17 00:00:00 2001 From: gutosie Date: Fri, 1 Apr 2022 09:59:08 +0300 Subject: [PATCH] Update plugin.py --- NeoBoot/plugin.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py index 3fcf2a4..2f9ef76 100644 --- a/NeoBoot/plugin.py +++ b/NeoBoot/plugin.py @@ -1618,6 +1618,18 @@ class NeoBootImageChoose(Screen): self.session.open(MessageBox, mess, MessageBox.TYPE_INFO) def bootIMG(self): + count = 0 + for fn in listdir('' + getNeoLocation() + '/ImageBoot'): + dirfile = '' + getNeoLocation() + '/ImageBoot/' + fn + if os_isdir(dirfile): + count = count + 1 + if count > 1: + myerror = _('Sorry, this is not neoboot vip version.\nGet NEO-VIP version, more info press blue button.') + self.session.open(MessageBox, myerror, MessageBox.TYPE_INFO) + else: + self.bootIMG2() + + def bootIMG2(self): if getCheckActivateVip() == getBoxMacAddres(): self.bootIMG2() elif not fileExists('/.multinfo'):