Update tools.py

This commit is contained in:
gutosie
2022-06-07 12:11:32 +03:00
committed by GitHub
parent bce6a5d825
commit 25f73028c5

View File

@@ -155,7 +155,7 @@ class MBTools(Screen):
def updateList(self):
self.list = []
mypath = '' + LinkNeoBoot + ''
if not fileExists('/tmp/.testneo'):
if not fileExists('/tmp/.testneo') and getCheckActivateVip() == getBoxMacAddres() and fileExists('/usr/lib/periodon/.kodn'):
os.system(("chattr -i /usr/lib/periodon/.activatedmac; mv /tmp/.mymac /usr/lib/periodon/.activatedmac; chattr +i /usr/lib/periodon/.activatedmac; touch /tmp/.testneo "))
if not fileExists(mypath + 'icons'):
mypixmap = '' + LinkNeoBoot + '/images/ok.png'