Update tools.py

This commit is contained in:
gutosie
2021-12-05 09:11:49 +02:00
committed by GitHub
parent 8e68a61ee5
commit d41afa15cb

View File

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