Update stbbranding.py

This commit is contained in:
gutosie
2021-12-09 00:09:18 +02:00
committed by GitHub
parent bea35161a2
commit 625d116d63

View File

@@ -971,7 +971,7 @@ def getMountPointNeo2():
os.system('echo "\n\nexit 0" >> ' + LinkNeoBoot + '/files/mountpoint.sh') os.system('echo "\n\nexit 0" >> ' + LinkNeoBoot + '/files/mountpoint.sh')
def getBoxMacAddres(): def getBoxMacAddres():
os.system('%s > /tmp/.mymac' % ("ifconfig ")) os.system('%s > /tmp/.mymac' % ("ifconfig -a"))
if fileExists('/tmp/.mymac'): if fileExists('/tmp/.mymac'):
f = open("/tmp/.mymac", 'r') f = open("/tmp/.mymac", 'r')
myboxmac = f.readline().strip().replace("eth0 Link encap:Ethernet HWaddr ", "") myboxmac = f.readline().strip().replace("eth0 Link encap:Ethernet HWaddr ", "")