summaryrefslogtreecommitdiffstats
path: root/ip/functions.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-08-05 06:50:24 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-08-05 06:50:24 +0200
commitc4933e901a1fd513302f19d372b506e0a06aafc2 (patch)
tree923572fd889a116c356e25afb6336de661af5e7d /ip/functions.sh
parenta043043ecb2be8e824f9da15d5d307f8130843a6 (diff)
downloadmlx-c4933e901a1fd513302f19d372b506e0a06aafc2.tar.gz
mlx-c4933e901a1fd513302f19d372b506e0a06aafc2.tar.bz2
mlx-c4933e901a1fd513302f19d372b506e0a06aafc2.tar.xz
mlx-c4933e901a1fd513302f19d372b506e0a06aafc2.zip
ipecamera6
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