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
74be753e
Commit
74be753e
authored
5 years ago
by
Marcel
Browse files
Options
Download
Email Patches
Plain Diff
Define BusID depending on the default video device unit.
parent
afa162f8
master
fbsd2nbsd
freebsd13
libinput
new_initgfx
ufs
zfs
20210508
1.4
1.4-RC1
1.3.2
1.3.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/etc/rc.d/initgfx
+4
-1
config/etc/rc.d/initgfx
with
4 additions
and
1 deletion
+4
-1
config/etc/rc.d/initgfx
+
4
-
1
View file @
74be753e
...
...
@@ -125,11 +125,14 @@ do_initgfx()
driver
=
${
initgfx_default
}
fi
echo
"
${
driver
}
"
>
/var/run/gfxdriver
unit
=
$(
sysctl
-n
hw.pci.default_vgapci_unit
)
busID
=
$(
pciconf
-lv
|
grep
^vgapci
${
unit
}
|
head
-1
|
\
sed
-E
's/^vgapci[0-9]@pci[0-9]:([0-9:]+):.*$/\1/'
)
eval
cfg_path
=
\$
{
path_
${
driver
}
_cfg
}
(
printf
"Section
\"
Device
\"\n
"
;
\
printf
"
\t
Identifier
\"
Card0
\"\n
"
;
\
printf
"
\t
Driver
\"
${
driver
}
\"\n
"
;
\
printf
"
\t
BusID
\"
PCI:
$busID
\"\n
"
;
\
printf
"EndSection
\n
"
)
>
${
cfg_path
}
}
...
...
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