Commit 39daa12e authored by Marcel's avatar Marcel
Browse files

Remove redundant "PCI"-prefix

parent 05d9e598
Showing with 2 additions and 2 deletions
+2 -2
...@@ -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
......
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