2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 2629
/ 2 Years ago, mon, august 22, 2022, 2:44:14
I am writing an installation automation BASH script. I'd like to install the nvme-cli
package only if an NVMe SSD is actually present.
I couldn't find a simple way to query the hardware (say, using lshw
) to get a kind-of-yes-or-no answer.
Any of you can give a way to extract the specific answer from within a BASH script?
I'd like to use the case
conditioning to either install it or not.
More From » command-line