diff options
Diffstat (limited to 'hald/freebsd/hf-computer.c')
-rw-r--r-- | hald/freebsd/hf-computer.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hald/freebsd/hf-computer.c b/hald/freebsd/hf-computer.c index 9e7aac48..7e9b9de1 100644 --- a/hald/freebsd/hf-computer.c +++ b/hald/freebsd/hf-computer.c @@ -130,6 +130,17 @@ hf_computer_device_add (void) hal_device_property_set_string(device, "info.subsystem", "unknown"); hal_device_property_set_string(device, "info.product", "Computer"); + if (PACKAGE_VERSION) { + int major, minor, micro; + + hal_device_property_set_string (root, "org.freedesktop.Hal.version", PACKAGE_VERSION); + if ( sscanf( PACKAGE_VERSION, "%d.%d.%d", &major, &minor, µ ) == 3 ) { + hal_device_property_set_int (root, "org.freedesktop.Hal.version.major", major); + hal_device_property_set_int (root, "org.freedesktop.Hal.version.minor", minor); + hal_device_property_set_int (root, "org.freedesktop.Hal.version.micro", micro); + } + } + if (uname(&un) == 0) { hal_device_property_set_string(device, "system.kernel.name", un.sysname); |