From 6f7177977f167dae21d3e406294015ca8d1bc532 Mon Sep 17 00:00:00 2001 From: gutosie Date: Sun, 28 Nov 2021 22:15:47 +0200 Subject: [PATCH] Update stbbranding.py --- NeoBoot/files/stbbranding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NeoBoot/files/stbbranding.py b/NeoBoot/files/stbbranding.py index 90d4d39..43f8626 100644 --- a/NeoBoot/files/stbbranding.py +++ b/NeoBoot/files/stbbranding.py @@ -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()