Update stbbranding.py

This commit is contained in:
gutosie
2021-12-03 17:43:56 +02:00
committed by GitHub
parent 3bb8a6d9d0
commit 99bdc5cfc2

View File

@@ -985,6 +985,7 @@ def getCheckActivateVip():
lines = f.read() lines = f.read()
f.close() f.close()
if lines.find("%s" % getBoxMacAddres()) != -1: if lines.find("%s" % getBoxMacAddres()) != -1:
os.system("ifconfig eth0 |grep -i hwaddr |awk '{print $5}' > /usr/lib/periodon/.activatedmac")
supportedvip = '%s' % getBoxMacAddres() supportedvip = '%s' % getBoxMacAddres()
return supportedvip return supportedvip