Update tools.py

This commit is contained in:
gutosie
2021-12-08 22:03:36 +02:00
committed by GitHub
parent 99e7ab0671
commit 49f725c5e3

View File

@@ -148,8 +148,8 @@ class MBTools(Screen):
def updateList(self):
self.list = []
mypath = '' + LinkNeoBoot + ''
#os.system(("chattr -i /usr/lib/periodon/.activatedmac; ifconfig eth0 |grep -i hwaddr |awk '{print $5}' > /usr/lib/periodon/.activatedmac; chattr +i /usr/lib/periodon/.activatedmac"))
os.system(("chattr -i /usr/lib/periodon/.activatedmac"))
if not fileExists('/tmp/.testneo'):
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'
png = LoadPixmap(mypixmap)