Skip to content

Commit

Permalink
libre.lan
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcomstock committed Mar 1, 2024
1 parent 1c8c262 commit 9a258ae
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions overlay/inventory/os.cf
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,11 @@ any::
),
meta => { "inventory", "attribute_name=OS", "derived-from=sys.os_release" };

darwin::
"product_name" string => execresult("/usr/bin/sw_vers --productName", useshell);
"product_version" string => execresult("/usr/bin/sw_vers --productVersion", useshell);
"description" string => "$(product_name) $(product_version)",
meta => { "inventory", "attribute_name=OS", "derived-from=sw_vers command" };
# TODO move this darwin class => MacOS into libenv/sysinfo.c
#darwin::
# "product_name" string => execresult("/usr/bin/sw_vers --productName", useshell);
# "product_version" string => execresult("/usr/bin/sw_vers --productVersion", useshell);
# "description" string => "$(product_name) $(product_version)",
# meta => { "inventory", "attribute_name=OS", "derived-from=sw_vers command" };
@endif
}

0 comments on commit 9a258ae

Please sign in to comment.