From 8826740596b33497136a6ca6a41264aabe4a9ca5 Mon Sep 17 00:00:00 2001 From: gutosie Date: Sun, 27 Nov 2022 19:36:43 +0200 Subject: [PATCH] Update tools.py --- NeoBoot/files/tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NeoBoot/files/tools.py b/NeoBoot/files/tools.py index 7ccd87f..235199b 100644 --- a/NeoBoot/files/tools.py +++ b/NeoBoot/files/tools.py @@ -155,7 +155,9 @@ class MBTools(Screen): def updateList(self): self.list = [] mypath = '' + LinkNeoBoot + '' - if not fileExists('/tmp/.testneo') and getCheckActivateVip() == getBoxMacAddres() and fileExists('/usr/lib/periodon/.kodn'): + if not fileExists('/tmp/.testneo') and getCheckActivateVip() == getBoxMacAddres() and fileExists('/usr/lib/periodon/.kodn') and not fileExists('/etc/.nameneo '): + os.system(("chattr -i /usr/lib/periodon/.activatedmac; mv /tmp/.mymac /usr/lib/periodon/.activatedmac; chattr +i /usr/lib/periodon/.activatedmac; touch /tmp/.testneo ")) + elif not fileExists('/tmp/.testneo') and fileExists('/usr/lib/periodon/.kodn') and fileExists('/etc/.nameneo '): 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'