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
39daa12e
Commit
39daa12e
authored
5 years ago
by
Marcel
Browse files
Options
Download
Email Patches
Plain Diff
Remove redundant "PCI"-prefix
parent
05d9e598
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/usr/bin/intel_setup
+2
-2
config/usr/bin/intel_setup
with
2 additions
and
2 deletions
+2
-2
config/usr/bin/intel_setup
+
2
-
2
View file @
39daa12e
...
@@ -63,8 +63,8 @@ xorg_cfg_ms_END
...
@@ -63,8 +63,8 @@ xorg_cfg_ms_END
unit
=
$(
sysctl
-n
hw.pci.default_vgapci_unit
)
unit
=
$(
sysctl
-n
hw.pci.default_vgapci_unit
)
config
=
$(
pciconf
-lv
|
grep
^vgapci
${
unit
}
|
head
-1
|
\
config
=
$(
pciconf
-lv
|
grep
^vgapci
${
unit
}
|
head
-1
|
\
sed
-E
's#.* chip=0x([0-9a-z]{4})([0-9a-z]{4}).*$#\1:\2#'
)
sed
-E
's#.* chip=0x([0-9a-z]{4})([0-9a-z]{4}).*$#\1:\2#'
)
busID
=
"PCI:
$(
pciconf
-lv
|
grep
^vgapci
${
unit
}
|
head
-1
|
\
busID
=
$(
pciconf
-lv
|
grep
^vgapci
${
unit
}
|
head
-1
|
\
sed
-E
's/^vgapci[0-9]@pci[0-9]:([0-9:]+):.*$/\1/'
)
"
sed
-E
's/^vgapci[0-9]@pci[0-9]:([0-9:]+):.*$/\1/'
)
vendor
=
$(
echo
"
$config
"
|
cut
-d
:
-f2
)
vendor
=
$(
echo
"
$config
"
|
cut
-d
:
-f2
)
device
=
$(
echo
"
$config
"
|
cut
-d
:
-f1
)
device
=
$(
echo
"
$config
"
|
cut
-d
:
-f1
)
[
"
$vendor
"
=
8086
]
||
exit
1
[
"
$vendor
"
=
8086
]
||
exit
1
...
...
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