From 9a258aedc8571ef7892426ce119dce75e6b92090 Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Fri, 1 Mar 2024 06:39:01 -0600 Subject: [PATCH] libre.lan --- overlay/inventory/os.cf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/overlay/inventory/os.cf b/overlay/inventory/os.cf index a6928db..8d2d85c 100644 --- a/overlay/inventory/os.cf +++ b/overlay/inventory/os.cf @@ -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 }