Commit 0eaf6211 authored by Marcel Kaiser's avatar Marcel Kaiser
Browse files

Add possible nvd(4) devices to the list.

Showing with 9 additions and 2 deletions
+9 -2
...@@ -76,11 +76,18 @@ devlist() { ...@@ -76,11 +76,18 @@ devlist() {
split($0, a, "[<>]"); descr = a[2]; split($0, a, "[<>]"); descr = a[2];
n = split($NF, a, "[,()]"); n = split($NF, a, "[,()]");
for (i = 2; i <= n; i++) { for (i = 2; i <= n; i++) {
if (a[i] ~ /(ada|da|nvd)[0-9]/) { if (a[i] ~ /(ada|da)[0-9]/) {
printf("%s|%s\n", a[i], descr); printf("%s|%s\n", a[i], descr);
} }
} }
}') }';
nvmecontrol devlist | awk '/^nvme[0-9]:/ {
n = split($0, a, ":");
sub(/^nvme/, "nvd", a[1]);
sub(/^[ \t]*/, "", a[2]);
printf("%s|%s\n", a[1], a[2]);
}'
)
if [ -n "${rootdev}" ]; then if [ -n "${rootdev}" ]; then
echo "$list" | grep -v "^${rootdev}" echo "$list" | grep -v "^${rootdev}"
else else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment