mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-17 17:56:33 +00:00
Full path to ioreg in case the PATH does not include /usr/sbin
This commit is contained in:
parent
e6222ad3f3
commit
0822b3e46f
@ -63,7 +63,7 @@ SEED_CATALOGS_PLIST = (
|
||||
|
||||
def get_board_id():
|
||||
'''Gets the local system board ID'''
|
||||
ioreg_cmd = ['ioreg', '-p', 'IODeviceTree', '-r', '-n', '/', '-d', '1']
|
||||
ioreg_cmd = ['/usr/sbin/ioreg', '-p', 'IODeviceTree', '-r', '-n', '/', '-d', '1']
|
||||
try:
|
||||
ioreg_output = subprocess.check_output(ioreg_cmd).splitlines()
|
||||
for line in ioreg_output:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user