Skip to content

Support version check on webOS - read from /var/run/nyx/os_info.json? #149

@cscd98

Description

@cscd98

webOS does not return valid information when running lsb_release -a:

LSB Version:	n/a
Distributor ID:	n/a
Description:	(none)
Release:	n/a
Codename:	n/a

uname -a returns:

Linux LGwebOSTV 5.4.96-266.mlt4tv.1 #1 SMP PREEMPT Fri Nov 25 04:25:18 UTC 2022 aarch64 GNU/Linux

The OS information is contained in:

/var/run/nyx/os_info.json

Contents of /var/run/nyx/os_info.json:

{
    "core_os_kernel_version": "5.4.96-266.mlt4tv.1",
    "core_os_name": "Rockhopper",
    "core_os_release": "7.2.0-47",
    "core_os_release_codename": "mullet-marine",
    "encryption_key_type": "prodkey",
    "webos_build_datetime": "20221207040929",
    "webos_build_id": "47",
    "webos_imagename": "lib32-starfish-global-secured",
    "webos_manufacturing_version": "03.21.45",
    "webos_name": "webOS TV",
    "webos_prerelease": "",
    "webos_release": "7.2.0",
    "webos_release_codename": "mullet-marine",
    "webos_release_platformcode": "7"
}

Can this module be modified to support webOS by checking for LGwebOSTV in uname and then read the information in /var/run/nyx/os_info.json?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions