Skip to content

main/devicepkg-dev: add hardware vendor & model into machine-info

Luca Weiss requested to merge devicepkg-hardware into master

Soon openrc-settingsd (hostnamed) will uses these properties so the information can be exposed to apps like GNOME Settings.

Let's also move the shellcheck comment to the outer scope, otherwise we'd need four of these comments now, and let's not use ${} but just $.


Results in a /etc/machine-info file like this:

PRETTY_HOSTNAME="Fairphone 4"
CHASSIS="handset"
HARDWARE_VENDOR="Fairphone"
HARDWARE_MODEL="Fairphone 4"

See also openrc-settingsd!4 (merged) , can be merged independently.

Merge request reports