Lines Matching +full:single +full:- +full:system
1 #!/usr/bin/python -u
9 # http://www.apache.org/licenses/LICENSE-2.0
61 # Only expecting a single service to implement
87 if path.split("/")[-1].find("_") < 0:
101 # Only expecting a single object to implement UUID.
107 # Only expecting a single service to implement
120 # Get the value of the mac on the system (from u-boot) without ':' separators
124 sys_mac = subprocess.check_output(["fw_printenv", "-n", "ethaddr"])
126 # Handle when mac does not exist in u-boot
131 # Replace the value of the system mac with the value of the inventory
132 # MAC if the system MAC is not locally administered because this means
133 # the system admin has purposely set the MAC
140 # Set mac to 0 for when u-boot mac is not present
153 # TODO Uncomment once sync from u-boot to /etc/machine-id is in place
162 arg.add_argument("-p")
163 arg.add_argument("-s")
180 print("Inventory MAC=%s,System MAC=%s" % (inv_mac, sys_mac))