mirror of
https://github.com/AlbrechtL/openwrt-docker.git
synced 2026-10-14 00:01:26 +00:00
2. fix PCI pass-through: Support for domains other than "0000"
This commit is contained in:
@@ -8,7 +8,7 @@ cleanup() {
|
||||
# Add your cleanup commands here
|
||||
|
||||
if [ -n "$PCI_1" ]; then
|
||||
if [[ "$PCI_1" == 0000:* ]]; then
|
||||
if [[ "$PCI_1" =~ ^[0-9]{4}: ]]; then
|
||||
PCI_SLOT="$PCI_1"
|
||||
else
|
||||
PCI_SLOT="0000:$PCI_1"
|
||||
|
||||
+1
-1
@@ -252,7 +252,7 @@ USB_ARGS="${USB_1_ARGS} ${USB_2_ARGS}"
|
||||
PCI_ARGS=""
|
||||
PCI_1_ARGS=""
|
||||
if [[ -n "$PCI_1" ]]; then
|
||||
if [[ "$PCI_1" == 0000:* ]]; then
|
||||
if [[ "$PCI_1" =~ ^[0-9]{4}: ]]; then
|
||||
PCI_SLOT="$PCI_1"
|
||||
else
|
||||
PCI_SLOT="0000:$PCI_1"
|
||||
|
||||
Reference in New Issue
Block a user