summaryrefslogtreecommitdiffstats
path: root/ip/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ip/functions.sh')
-rw-r--r--ip/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ip/functions.sh b/ip/functions.sh
index 2941953..3f45f63 100644
--- a/ip/functions.sh
+++ b/ip/functions.sh
@@ -7,7 +7,7 @@ function portset {
function mlxconf {
mode=$1
- pci=$(./connectx_port_config -s | grep PCI | grep -Po "\d{4}:\d{2}:\d{2}\.\d")
+ pci=$(./connectx_port_config -s | grep PCI | grep -Po "[\da-f]{4}:[\da-f]{2}:[\da-f]{2}\.[\da-f]")
for dev in $pci; do
echo "Configuring: $dev"
portset $dev $mode