FreeBSD 14 changed from the nvd driver to the nda driver for x86. This change modifies the smart service to utilize the new driver name on the UI and the backend script that pulls the smartctl code (thanks @jbilac!). Issue https://github.com/opnsense/plugins/issues/4155
Add word-breaking to the "Ident" column of the SMART Dashboard widget, to prevent long device names from causing the table to extend outside of the widget's div.
- The existing `smart info.*` actions have been merged into one `smart info`
action that takes the type as a parameter.
- There is now a `smart info_json` action that runs the same `smartctl` command
with an additional `--json=c` parameter for JSON output.
- The `/api/smart/service/info` API now takes an optional `"json": true`
request body parameter that changes the response `"output"` value from
a string to a JSON object. The JSON object is the output of
the `smart info_json` action.
Fixes#2283
The "description" fields were removed to not flood the UI with duplicate
items but some of them are actually useful for cron.
Descriptions for actions related to tests were re-added with unique
content to enable periodic SMART tests via cron.