From 0d10c625287ac9e1256c19edce6c9a42fc86716b Mon Sep 17 00:00:00 2001 From: gutosie Date: Thu, 24 Mar 2022 09:07:22 +0200 Subject: [PATCH] Update stbbranding.py --- NeoBoot/files/stbbranding.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/NeoBoot/files/stbbranding.py b/NeoBoot/files/stbbranding.py index 00062a4..1c1a3a4 100644 --- a/NeoBoot/files/stbbranding.py +++ b/NeoBoot/files/stbbranding.py @@ -1112,4 +1112,19 @@ def getImageBootNow(): f.close() return imagefile +def getNeoActivatedtest(): + neoactivated = 'NEOBOOT MULTIBOOT' + if not fileExists('/.multinfo'): + if getCheckActivateVip() != getBoxMacAddres(): + neoactivated = 'Ethernet MAC not found.' + elif not fileExists('/usr/lib/periodon/.kodn'): + neoactivated = 'VIP Pin code missing.' + elif getTestToTest() != UPDATEVERSION : + neoactivated = _('Update %s is available.') % getTestToTest() + else: + if getCheckActivateVip() == getBoxMacAddres() and fileExists('/usr/lib/periodon/.kodn') and getTestToTest() == UPDATEVERSION : + neoactivated = 'NEOBOOT VIP ACTIVATED' + + return neoactivated + boxbrand = sys.modules[__name__]