quirks: implement DMI support on FreeBSD
authorGreg V <greg@unrelenting.technology>
Mon, 15 Mar 2021 22:06:01 +0000 (01:06 +0300)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 17 Mar 2021 02:34:30 +0000 (02:34 +0000)
commit6941f74070ec0e639bb045107b969b7798947fae
treeb67c1b25467b2afcfefb071e378d71381c00d0cc
parentd8b1a773e306e1055b2a6fc1e71cc7af77c682a2
quirks: implement DMI support on FreeBSD

FreeBSD does not use Linux modaliases, so we have to generate these strings.
Unfortunately for us, the data in kenv has the chassis type pre-parsed into
a nice string, so we have to match these strings back into numbers.
Only relevant types are included to avoid bloating the code.

Signed-off-by: Greg V <greg@unrelenting.technology>
src/quirks.c