Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomadbsd
Commits
0eaf6211
Commit
0eaf6211
authored
5 years ago
by
Marcel Kaiser
Browse files
Options
Download
Email Patches
Plain Diff
Add possible nvd(4) devices to the list.
parent
194d8d8a
master
fbsd2nbsd
freebsd13
libinput
new_initgfx
ufs
zfs
20210508
1.4
1.4-RC1
1.3.2
1.3.1
1.3
1.3-RC1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/usr/libexec/nomadbsd-install
+9
-2
config/usr/libexec/nomadbsd-install
with
9 additions
and
2 deletions
+9
-2
config/usr/libexec/nomadbsd-install
+
9
-
2
View file @
0eaf6211
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help