Update stbbranding.py

This commit is contained in:
gutosie
2021-11-28 22:15:47 +02:00
committed by GitHub
parent c93babcb69
commit 6f7177977f

View File

@@ -961,7 +961,7 @@ def getMountPointNeo2():
os.system('echo "\n\nexit 0" >> ' + LinkNeoBoot + '/files/mountpoint.sh')
def getBoxMacAddres():
os.system("ifconfig | awk '$0 ~ /HWaddr/ { print $5 }' > /tmp/.mymac")
os.system("ifconfig eth0 |grep -i hwaddr |awk '{print $5}' > /tmp/.mymac")
if os.path.exists('/tmp/.mymac'):
with open('/tmp/.mymac', 'r') as f:
myboxmac = f.readline().strip()